29 Jan
2015
29 Jan
'15
1:12 p.m.
Dear all,
In trunk I've just committed a new website plugin, djangocms-toc.
It's quite new and will need fixing as it's tested but this is what it does so far:
1. If placed into a text plugin, it will generate a table of contents for that plugin. 2. If placed outside, it'll pick the first plugin/placeholder. 3. The toc is generated using the html header tags in order 4. If the header tag itself has an id, then a local link <a href="#id"> is created. 5. Otherwise no link is created.
a. You can pick a title (h2) for the table of contents. b. You can choose if you want bullets or numbers c. The whole toc is within a <div id='toc'> tag for easier styling later on.
Thoughts?
Best Regards, Martin Owens