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.17:
- Allow setting 'float' (=alginment) per article.
0.16.1:
- Updated French translations (Thanks to Rajoz!)
0.16:
- New per article parameters 'addNumbering' and 'addNumberingToc' to select whether the headings should be numbered on a per article base.
0.15:
- Add option to select default state of ToC if using 'hide' link.
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)
Older notable updates:
- Add new option to add additional views where the ToC should be displayed.
- The plugin should now work with both FLEXIcontent and K2.
- Thanks to Frank Thommen there is now a Joomla 1.6 compatible version.
- 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
My only suggestion for possible improvement is to have a category selection option in the backend.
Many thanks to the developer for the hard work, it's a great contribution!
You have probably installed the Joomla 1.5 Version of the plugin. For 2.5 you need the 1.6+ Version: http://www.tomprogs.at/downloads/joomla/joomla-plugin-inhaltsverzeichnisse-fuer-artikel-joomla-1.6-version/details.xhtml
It would be better if you'll add some Java Script ro fix the TOC inside of page even when users scroll down the page.
In addition the extension does not support UTF8 Characters in URL and Titles.
and Finally since there is no pagination functionality in K2, it would be great if you'll add pagination ability in it. I'm sure so many people will love you.
I run a website with HUGE articles and over 40k articles. The default Pagebreak plugin which can create TOC, just really isn't efficient for my site. This plugin saved the day with it's Dropdown feature. It is user friendly and works flawlessly.
One thing I'd love to see added to this plugin is the ability to set TOC based on where Pagebreak code is placed within the Article. I had to disable the Joomla Core Content - Pagebreak plugin, but there were areas where I still wanted to use it, and had to modify those areas to not use Pagebreaks anymore.
Otherwise. Awesome plugin!
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.


