PluginProbe
SimpleTOC – Table of Contents Block / 7.0.6
SimpleTOC – Table of Contents Block v7.0.6
7.2.0 7.3.0 7.1.1 7.1.0 7.0.10 7.0.9 7.0.8 7.0.7 7.0.6 7.0.4 7.0.5 5.0.21.1 5.0.22 5.0.23 5.0.24 5.0.25 5.0.25.1 5.0.27 5.0.28 5.0.29 5.0.3 5.0.30 5.0.31 5.0.32 5.0.33 All 159 releases
simpletoc / readme.txt

readme.txt in SimpleTOC – Table of Contents Block 7.0.6, at readme.txt

208 lines 10.4 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 === SimpleTOC - Table of Contents Block ===
2 Contributors: MarcDK
3 Tags: TOC, Table of Contents, Block, Accessibility, Table
4 Requires at least: 5.9
5 Tested up to: 7.0
6 Stable tag: 7.0.6
7 Requires PHP: 7.3
8 License: GPLv2 or later
9 License URI: http://www.gnu.org/licenses/gpl-2.0.html
10 Donate link: https://marc.tv/out/donate
11
12 SEO-friendly Table of Contents Gutenberg block. No JavaScript or CSS by default.
13
14 == Description ==
15
16 Add a Table of Contents block to your posts and pages. The TOC is a nested list of links to all heading found in the post or page. To use it, simply add a block and search for "SimpleTOC" or just "TOC".
17
18 The maximum depth of the toc can be configured in in the blocks' sidebar among many other options. There can hide the headline "Table of Contents" and add your own by using a normal heading block.
19
20 [Spin up](https://demo.tastewp.com/simpletoc) a new WordPress instance with the SimpleTOC plugin already installed.
21
22 = User Feedback =
23
24 > "It is lightweight, stable, and fully compatible with WordPress Full Site Editing. A reliable solution that integrates seamlessly and performs exactly as expected."
25 — [@js100 on wordpress.org](https://wordpress.org/support/topic/good-job-1889/)
26
27 > "Does the job perfectly, and adds no bloat."
28 — [@clicknathan on wordpress.org](https://wordpress.org/support/topic/does-the-job-perfectly-and-adds-no-bloat/)
29
30 > "Simple yet powerful. Great plugin that does exactly what you need."
31 — [@mixey on wordpress.org](https://wordpress.org/support/topic/simple-yet-powerful-106/)
32
33 = Accessibility =
34
35 This plugin is designed & developed for WCAG 2.2 level AA conformance. The plugin is tested with assistive technology and intended to be accessible, however some third party plugins or themes may affect the individual accessibility on a given website. If you find an accessibility issue, please [let us know](https://github.com/mtoensing/simpletoc/issues) and we'll try to address it promptly.
36 Hidden TOCs use native `<details>` and `<summary>` semantics without extra ARIA references that require custom IDs.
37
38 = Features =
39
40 * Designed for Gutenberg.
41 * Zero configuration: Add the SimpleTOC block to your post and that's it.
42 * Minimal and valid HTML output.
43 * Utilizes the browser's built-in details tag for a collapsible interface.
44 * No JavaScript or CSS by default. Optional features such as the accordion menu, smooth scrolling, or box style add minimal assets only when enabled.
45 * Optional box style for the TOC with a default gray background.
46 * Style SimpleTOC with Gutenberg's native group styling options.
47 * Inherits the style of your theme.
48 * Smooth scrolling effect using CSS.
49 * Accessibility built-in by following web standards.
50 * Optional ARIA Label and navigation role attributes.
51 * Translated in [multiple languages](https://translate.wordpress.org/projects/wp-plugins/simpletoc/). Including German, Japanese, Chinese (Taiwan), Dutch, Brazilian Portuguese, French, Spanish and Latvia.
52 * Ideal for creating a Frequently Asked Questions section on your website.
53
54 = Customization =
55
56 * Administrators can utilize global settings to supersede the individual block settings.
57 * Add background and text color with Gutenberg groups.
58 * Native block support for wide and full width.
59 * Control the maximum depth of the headings.
60 * Choose between an ordered, bullet HTML list. Or indent the list.
61 * Enable a box style and choose a box color directly in the block sidebar.
62 * Select a heading level or turn it into a paragraph.
63 * Disable the h2 heading of the TOC block and add your own.
64
65 = Compatibility =
66
67 * GeneratePress and Rank Math support.
68 * Works with popular AMP plugins.
69
70 = How to contribute =
71
72 SimpleTOC is open-source and developed on [GitHub Pages](https://github.com/mtoensing/SimpleTOC). If you find a bug or have an idea for a feature please feel free to contribute and create a pull request.
73
74 == Changelog ==
75 = 7.0.6 =
76 * Prepared release for WordPress 7.0 compatibility.
77
78
79 = 7.0.5 =
80 * Fixed: GenerateBlocks dynamic tags in heading links keep working when SimpleTOC adds heading IDs.
81 * Fixed: GenerateBlocks dynamic heading text is resolved consistently in the TOC and matching heading anchors.
82 * Maintenance: Added automated GitHub README generation from the WordPress.org `readme.txt`.
83
84 = 7.0.4 =
85 * Fixed: GenerateBlocks dynamic tags in heading links keep working when SimpleTOC adds heading IDs.
86 * Fixed: GenerateBlocks dynamic heading text is resolved consistently in the TOC and matching heading anchors.
87
88 = 7.0.3 =
89 * Fixed: Removed an invalid `aria-labelledby` reference from hidden TOC `<details>` markup and now rely on native `<summary>` labeling.
90
91 = 7.0.2 =
92 * Fixed: Removed an invalid `aria-labelledby` reference from hidden TOC `<details>` markup and now rely on native `<summary>` labeling.
93
94 = 7.0.1 =
95 * Added: Direct link from the Advanced Features sidebar to the global SimpleTOC settings.
96 * Fixed: Global settings link now appears reliably in the editor sidebar.
97 * Changed: Wrapper toggle now reflects the automatic wrapper state while box style is active.
98
99 = 7.0.0 =
100 * Added: Box style option in the block sidebar with a color picker and default gray background.
101 * Added: Global setting to force the default gray box style for all SimpleTOC blocks.
102 * Added: Frontend box-style CSS registered through block metadata.
103
104 = 6.9.8 =
105 * Updated: Dependencies and house-keeping.
106 * Fix: corrected dependency declarations.
107
108 = 6.9.7 =
109 * Fixed: GeneratePress Dynamic Tags work again - hopefully. If not, please report here https://github.com/mtoensing/simpletoc/issues/79#issuecomment-3745650464 Thanks @jhanten
110
111 = 6.9.6 =
112 * Added: Coding standards cleanup with improved rules, cleaner code, safer output, and consistent naming. Thanks @ronalfy
113 * Added: Minimum PHP version requirement set to 7.3
114
115 = 6.9.4 =
116 * Added: Introduced proper PHP namespaces to avoid class and function name conflicts and improve overall code robustness. Thanks @ronalfy.
117 * Added: Improved sidebar sub-menu for the “Hide SimpleTOC” option
118
119 = 6.9.3 =
120 * Fix: Fix Multiple IDs in Table of Contents Thanks @ronalfy
121 * Added: Support for GenerateBlocks 2.1.0 Thanks @ronalfy
122
123 = 6.9.1 =
124 * Added: Support for the new V3 block api.
125 * Added: Tested compatibility with WordPress 6.9
126
127 = 6.7.3 =
128 * Added: Tested compatibility with WordPress 6.8
129
130 = 6.7.2 =
131 * Added: Support for GenerateBlocks 2.0. Thanks @blronaldhuereca
132 * Added: Included an accessibility statement in the plugin description. Thanks Gen Herres.
133
134 == Installation ==
135
136 SimpleTOC can be found and installed via the Plugin menu within WordPress administration (Plugins -> Add New). Alternatively, it can be downloaded from WordPress.org and installed manually...
137
138 In Gutenberg, add a block and search for "SimpleTOC" or just "TOC". Please save your content before you use the block.
139
140 == Frequently Asked Questions ==
141
142 = Configuring Global Settings in SimpleTOC =
143
144 SimpleTOC allows you to configure global settings for your WordPress website. These settings can be enforced globally, overriding any block-level configurations that may exist. To access these settings, navigate to the SimpleTOC section of the WordPress Settings.
145
146 = How do I add a background color to SimpleTOC using Gutenberg groups? =
147
148 Select the block and select "group" in the context menu. Apply "background color", "link color" and "text color" to this group. SimpleTOC will inherit these styles. You would like to use this styled SimpleTOC group next time you write a post? Convert it to a reusable block.
149
150 = How to exclude a single heading from the TOC? =
151
152 If you really want to hide a single heading from the table of contents, then add the CSS class "simpletoc-hidden" to a heading block. You can find this field in the same place as the HTML anchor field: In the Block > Advanced sidebar. But first, think about the reason you would like to hide a specific heading. Maybe you would like to remove all headings of a specific depth level. Then there is an option for that in the blocks options in Gutenberg. If you think this heading should not be part of the toc perhaps it is not needed in the post itself?
153
154 = I would like to save my SimpleTOC settings as default. Is that possible? =
155
156 You can convert your configured SimpleTOC block into a reusable block in Gutenberg. It will keep its settings. This way, you can use your desired settings for each new post by adding the reusable block.
157
158 = How to add a div tag wrapper to the TOC? =
159
160 If you add a custom class to the SimpleTOC block in "Advanced" and then "Additional CSS Class(es)" a div with that class will be wrapped around the HTML output.
161
162 = How to allow developers to exclude specific headings programmatically? =
163
164 Use the 'simpletoc_excluded_blocks' filter. For example, this code will exclude heading blocks that are inside a column block.
165
166 Example:
167
168 add_filter( 'simpletoc_excluded_blocks', function ( array $blocks ) {
169 $blocks[] = 'core/column';
170
171 return $blocks;
172 } );
173
174
175 = How do I change the color of the accordion menu? =
176
177 The heavy plus character I used can not be colored with css without hacks. But you can change the icon to something else and change the color of the new icon.
178
179 .simpletoc-collapsible::after {
180 content: "✖";
181 color: #e94c89;
182 }
183
184 = How do I add SimpleTOC to all articles automatically? =
185
186 I don’t see an easy solution at the moment. SimpleTOC is only a block that can be placed in your post. If there was a plugin that adds blocks to every post, then this would be the solution. I think this should be another separate plug-in to keep the code of SimpleTOC clean and … well, simple.
187
188 == Screenshots ==
189 1. SimpleTOC block in Gutenberg editor.
190 2. SimpleTOC in the post.
191 3. Simple but powerful. Customize each TOC as you like.
192 4. Control the maximum depth of the headings.
193 5. SimpleTOC styled with Gutenbergs native group styles.
194 6. SimpleTOC Advanced Features
195 7. Gutenberg Heading block: Set a custom anchor
196 8. SimpleTOC hidden in the accordion menu.
197 9. SimpleTOC global settings.
198
199 == Credits ==
200
201 This plugin is forked from [pdewouters](https://github.com/pdewouters/gutentoc) and uses code from [Easy-Table-of-Contents](https://github.com/shazahm1/Easy-Table-of-Contents)
202
203 Many thanks to [Tom J Nowell](https://tomjn.com) and and Sally CJ who both helped me a lot with my questions over at wordpress.stackexchange.com
204
205 And many more thanks to all the [developers on GitHub](https://github.com/mtoensing/simpletoc/graphs/contributors) who helped me making SimpleTOC what it is today!
206
207 Thanks to Quintus Valerius Soranus for inventing the Table of Contents around 100 BC.
208