该插件尚未通过WordPress的最新3个主要版本进行测试。 当与较新版本的WordPress一起使用时,可能不再受到维护或支持,并且可能会存在兼容性问题。

Table of Contents Block

描述

Create a Table of Contents within Gutenberg editor with various styling controls and settings.

Features

  • Hierarchical View
  • Bullets or Numbers list
  • Include or Exclude headings
  • Make it Collapsable
  • Individual styling options

Hierarchical View

List your headings as flat or nested view in table of contents to make them more readable.

Include or Exclude headings

This option gives you flexibility to choose which headings should be included or excluded in your table of contents by using HTML tags and CSS id, classes.

区块

该插件提供了1个区块.

  • Table of Contents Improve readability and navigation of your websites with the Table of Contents Block.

常见问题

Does it work with any WordPress theme?

Yes, it will work with any standard WordPress theme.

评价

2023年5月19日
Looks good on the edit page but as many others have said in the past year it pulls in all the headers across entire page including footer links when published/previewed. As last update was over a year ago despite the requests for fixes it seems it won't be kept compatible with future releases of Wordpress. Edit: as someone said in the support you can fix this by adding this into the include box on the right of the page editor: It would definitely be better if it only shown headers from the content div by default – I found I need to add “.wp-block-post-content” to the include section to make it not pick up the headers from footer. Other plugins don’t do this.
2023年1月11日
The plugin is easy to set up and configure. It gets the job done without adding any bloat. Request/Suggestion: Please make the TOC link anchor text take up the values of the heading instead of the standard #ib-toc-anchor-# /post-1/#ib-toc-anchor-1 To /post-1/#This-is-heading This would be easy to link straight to a heading even if the order of the heading is changed.
2022年1月17日
This is excellent, works very well, easy to configure and style, both in a content colun or in a sidebar using the new WP 5.8 widget editor.
阅读所有8条评价

贡献者及开发者

“Table of Contents Block” 是开源软件。 以下人员对此插件做出了贡献。

贡献者

“Table of Contents Block”插件已被翻译至1种本地话语言。 感谢所有译者为本插件所做的贡献。

将“Table of Contents Block”翻译成您的语言。

对开发感兴趣吗?

您可以浏览代码,查看SVN仓库,或通过RSS订阅开发日志

更新日志

1.0.2 – January 26, 2022

  • Fix: JS error with WP 5.9

1.0.1 – July 30, 2021

  • Fix: Anchors selection getting reset in editor
  • Fix: HTML tags was getting rendered in title
  • Fix: Minor CSS issues

1.0.0 – July 18, 2020

  • Initial release