Loading...
 
Skip to main content

Features / Usability


How To Build A Table Of Contents

posts: 9
I'm trying to create a top-level table of contents for our new wiki. I'd like it to be similar to the one in TW.doc. I've read through the documentation (both online & PDF) and looked at the TW.doc pages in edit mode to see how it's done. But I can not get the TOC to show up in my wiki pages. Can anyone give me some help on how I can create a site-wide table of contents? Thanks.
posts: 3665 United States

> I'm trying to create a top-level table of contents for our new wiki. I'd like it to be similar to the one in TW.doc. I've read through the documentation (both online & PDF) and looked at the TW.doc pages in edit mode to see how it's done. But I can not get the TOC to show up in my wiki pages. Can anyone give me some help on how I can create a site-wide table of contents? Thanks.


Use the {toc} plugin to create a table of contents based on the headings for a single wiki page.

Use the {maketoc} plugin to create a table of contents based on the headings in a structure of wiki pages.

See the the plugin docs and structure docs for more details.


HTH,

-Rick
Now Available: TikiWiki for Dummies Smarties — A beginner's guide to using ))TikiWiki((.

posts: 40

I think you might have this answer reversed....

{maketoc} creates a table of contents based on the headings on a page (indicated by !, !!, !!! etc.

{toc} creates a table of contents based on the structure.

To test this out, I created a page that had headings in it and placed both of these items on the page.


posts: 40

... and by the way, I can't seem to get {toc} to work on a page that is part of a structure. It shows nothing!!

Any suggestions??? Is there a plugin I have to install?

posts: 4673 Japan

I'm able to use maketoc on a page in a structure in TikiWIki 2.2 (See http://zukakakina.com/tiki-index.php?page_ref_id=1). No plugin is needed. I tested both the structure top page and a child page, and I used the normal wiki editor; not sure what the behavior is with wysiwyg.

Update: Sorry, I misread your post. It seems {toc} will produce a table of contents only on the top page of a structure. On a child page, it has no effect, so I guess the set of links would have to be made some other way if you want the table of contents to show on all structure pages. (Based on my tests, anyway.)

-- Gary