GetSimple Support Forum
QUESTION A per page TOC container like in Wikipedia articles? - Printable Version

+- GetSimple Support Forum (http://get-simple.info/forums)
+-- Forum: GetSimple (http://get-simple.info/forums/forumdisplay.php?fid=3)
+--- Forum: General Questions and Problems (http://get-simple.info/forums/forumdisplay.php?fid=16)
+--- Thread: QUESTION A per page TOC container like in Wikipedia articles? (/showthread.php?tid=8705)



A per page TOC container like in Wikipedia articles? - Hypertexter - 2016-09-08

Hi,

is there an easy way to get a on-page navigation with clean URL's like in Wikipedia?

What I mean is the container at the beginning of larger Wikipedia articles, like in https://en.wikipedia.org/wiki/GetSimple_CMS

Automatically generated from the headlines text? Like https://en.wikipedia.org/wiki/GetSimple_CMS#Description
(the word Description from id="Description").

Hypertexter


RE: A per page TOC container like in Wikipedia articles? - shawn_a - 2016-09-08

I have a plugin that does this, but it has not been updated in some time.
http://get-simple.info/extend/plugin/sa-toc-anchors-plugin/349/

check author website for docs


RE: A per page TOC container like in Wikipedia articles? - Hypertexter - 2016-09-08

Hm! I'm sure I formerly tried that plugin... but I cannot remember why I did not keep it.

I will try it again. What is the title information good foor? I thought I just need the ID's and the content of the heading.

Hypertexter

One more question: Why does it make a /#heading (the slash)?


RE: A per page TOC container like in Wikipedia articles? - shawn_a - 2016-09-08

( I created this 4 years ago )

I do not remember, probably for hover or some other things that use it, in case its a blank anchor i guess.

Do not know what you mean by /#?


RE: A per page TOC container like in Wikipedia articles? - tibbz - 2016-11-01

A TOC might best be done in Javascript as you already have all the data you need. I found this which may help.
http://projects.jga.me/toc/