Based on original AutoTOC plugin by Gert Hengeveld
This Cotonti plugin automatically generates a Table Of Contents for any page. HTML heading tags are extracted and listed in a tree. The page body is modified to include anchors in source HTML.
Simply upload the plugin folder to your /plugins directory and enable the plugin in your Administration panel.
The plugin has some configurable setting. You can configure the HTML tags that should be included in the TOC. Default value is h2,h3. (Nesting is now ot limited to 2 levels.)
Also you can change class and prefix for TOC item.
Plugin page on GitHub https://github.com/macik/cot-autotoc-2/
Thanked: 175 mal
Полезный плагин, было бы неплохо добавить .tpl файл скина, чтобы не править autotoc.resources.php.
Thanked: 181 mal
Править файл autotoc.resources.php не надо, достаточно переопределить эти строки в своей теме в файле `theme.php`.
Thanked: 175 mal
Тоже вариант
Thanked: 5 mal
Не понятно как он работает в папке скина создал папку modules там создал page.list.docs.tpl в админке в структуре страниц укзал docs чтоб подгрузился tpl шаблон page.list.docs.tpl, в итоге он подгурузился, вставил туда тег {PAGE_TOC} не работает( Что я сделал неправильно?(