imarc/craft-entry-toc 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

imarc/craft-entry-toc

最新稳定版本:1.0.0

Composer 安装命令:

composer require imarc/craft-entry-toc

包简介

A CraftCMS plugin that adds a Table of Contents to entries with long matrix or neo blocks

README 文档

README

Adds a Table of Contents to in the CMS to entry editing screens with long matrix or neo blocks to make it easier to jump down the page to the block you want to edit.

Requirements

This plugin requires Craft CMS 4.4.0 or later, and PHP 8.0.2 or later. Alternatively, this plugin requires Craft CMS 5.0 or later, and PHP 8.2 or later.

Installation

You can install this plugin from the Plugin Store or with Composer.

From the Plugin Store

Go to the Plugin Store in your project’s Control Panel and search for “Entry TOC”. Then press “Install”.

With Composer

Open your terminal and run the following commands:

# go to the project directory
cd /path/to/my-project.test

# tell Composer to load the plugin
composer require imarc/craft-entry-toc

# tell Craft to install the plugin
./craft plugin/install entry-toc

Configuration

To select which matrix or neo blocks show a table of contents, copy the entry-toc.php file into your config directory. Replace the example fields like exampleNeoField with the name of the field you want to create a table of contents for. Replace the exampleHeading and similar with the name of the field within the matrix or neo block that contains the block's headline.

If that fields is empty, the table of contents will just show the block type. If it is populated, it will show Block Type - Your Headline Here.

统计信息

  • 总下载量: 162
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 2
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 2
  • Watchers: 2
  • Forks: 1
  • 开发语言: Twig

其他信息

  • 授权协议: mit
  • 更新时间: 2024-05-08

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固