Article Auto ToC

It is based on the existing plugin 'Article Table of Contents' but because it didn't had all I wanted to have I reworked the settings and fixed the code to work with my Joomla installation and produce valid XHTML 1.1.
To use it you have just do install and enable it and adjust the settings to your needs. If you want to disable it for certain articles just place {autotoc enabled=no} inside the text.
You can also go the other way round an disable generating a ToC by default and place {autotoc enabled=yes} (or simply {autotoc}) inside the text of articles where a ToC should be displayed.
If you want to choose a different layout for the ToC in different articles you can select either the table layout or the dropdown layout in the global settings as default, and select another visualization with placing eg. {autotoc layout=table} inside the according article.
Updates:
0.14:
- Add option to select maximum heading level.
- Bugfix: Place numbering more inteligent when using nested tags to get same css style applied.
0.13.1:
- Add French translations (Thanks to Rajoz).
0.13:
- New option to show a wikipedia like 'Hide' link for ToCs using table layout.
0.12:
- New uniform tag for all versions and support for multiple options per article ({autotoc param1=value1|...|paramN=valueN})
- New per article parameter 'layout' to select a different layout for just a few articles: layout=(table|dropdown)
- Bugfix: Corrected detection of frontpage (was based on detection 'featured' view)
0.11.3:
- Bugfix: Leave global JURI object unchanged to not interfere with plugins executed after this plugin.
Older notable updates:
- Autodetect the levels of available headings and use it for automatically starting the numbering at the lowest available level.
- Add new option to add additional views where the ToC should be displayed.
- The plugin should now work with both FLEXIcontent and K2. Because I don't use any of them, I'd appreciate any feedback.
- Thanks to Frank Thommen there is now a Joomla 1.6 compatible version.
- Add an option to place an div with clear enabled after the ToC to prevent the text from flowing arround the ToC
- Established compatibility with the pagebreak plugin:
* Add toc after page navigation
* Changed css class of toc from 'contenttoc' to 'autotoc'
Direct download links:
- Joomla 1.5: http://www.tomprogs.at/downloads/joomla/joomla-plugin-inhaltsverzeichnisse-fuer-artikel/download.xhtml
- Joomla 1.6+: http://www.tomprogs.at/downloads/joomla/joomla-plugin-inhaltsverzeichnisse-fuer-artikel-joomla-1.6-version/download.xhtml
But I want to display a TOC only in a single article (which the plugin claims to be able to do), it is not quite clear how, though.
I disabled the plugin - putting {autotoc} inside an article, will then just output that very text ...
If you disable the plugin certainly nothing happens, because if the plugin doesn't run it gets no chance to remove it from the text.
Instead you should leave the plugin enabled but set the plugin option 'Generate for all articles' to 'no'.
If you have any further problems please contact me through my linked homepage.
Two more suggestions from me:
Select whether the TOC is by default open or closed.
A switchable discreet animation when opening and closing the TOC would be nice.
Nevertheless, this little tool is a gem.
THANKS!
Is it possible to change the display type with the parameter in the article?
For example : dropdown for 1 article, list for other.
Thank you, good idea :)
Just try the new version...
Thanks!
Thank you for your review! Please check out the new version of the plugin. I have added an option to enter additional views, where you can just add 'category'.
- easy to intall
- simple smart layout
- working smooth
- some but not to many things to configure from the backend
- helpful developer
(waited some days for a reply, but thats fine for free software, and I got a precise answer for a tweek)
The only one default I notices is that the TOC doesn't appear in articles displayed in category pages. I corrected it by adding the string 'category' in the array containing impacted views.
Great work Tom the 1.0 version is approaching :)
Thank you for your feedback!
Please check out the latest version which should support K2.
Regards,
Tom
Thanks very much!
Albert van Dalen
A van Dalen
A suggestion for further improvement:
Once you switch "Article Auto ToC" on in an article (in this case: using the command in the html code of the article, the table of contents (ToC) appears always as the very first thing after the article's headline. This may be the standard solution for a ToC, however, I sometimes want to give first (i.e. directly after the headline and before the ToC) one or two lines of information what this article is about, in addition to the headline.
Hence it would be too nice if the ToC appeared not at the very beginning of the article but exactly there were you have put in the command into the code.
I do not know if this is possible, technically, but if it is possible, this would be a great asset to the plugin.
Thank you,
Kind regards,
Christian Geiselmann
Thanks for your feedback!
I've implemented your suggestion into the new version. Please give it a try.
It's a useful feature to disable tocs for selected articles.
But how about the other way round? That would be a killer feature! :)
I need to enable it on per-article-basis. Since most most of the articles are rather short and do not need a table of contents.
Thanks a lot!
Thanks for your review!
Just try the update version. Now it is also possible to go the other way round.
I'm have problem with displaying plugin in right side of article, like in the demo. Inside my articles table of content is in left side.
Thanks for your review.
I have now added an option to select the alignment. For more advanced layout changes you should use css.





