Loading...
 
Features / Usability

Features / Usability


Structures & toc

posts: 29 United States

Hi,
I have been playing with structures.
I can use an alias to show a nice 'alternate' name for the page/chapter/section the user is seeing. That works fine in the top area of the page where the navigation is shown. It does not appear to work in the {toc} function however. The auto-generated t.o.c. displays the original ))SmashedWords(( names frown.
Am I missing something?
TIA
Dr Magu

posts: 2881 United Kingdom


In 1.9 there is a parameter for toc to show page descriptions rather than the page names.

What I have done for many of my tiki sites, is modify the templates and removed the page name field replacing with the page description, and it gives a much nicer effect.

Damian

posts: 29 United States

Isn't toc a plugin? If one wasn't interested in making the changes everywhere, would a simple code change in toc do? Do you know which file to look for?
TIA

posts: 2881 United Kingdom

> drmagu:
> Isn't toc a plugin? If one wasn't interested in making the changes everywhere, would a simple code change in toc do? Do you know which file to look for?
> TIA

no toc is part of the wiki syntax, its somewhere in the huge tikilib.

Damian


posts: 29 United States

Isn't toc a plugin? If one wasn't interested in making the changes everywhere, would a simple code change in toc do? Do you know which file to look for?
TIA

posts: 2881 United Kingdom

> drmagu:
> Isn't toc a plugin? If one wasn't interested in making the changes everywhere, would a simple code change in toc do? Do you know which file to look for?
> TIA

no toc is part of the wiki syntax, its somewhere in the huge tikilib.

Damian


posts: 12 South Africa

Dr Magu

It's probably a hell of a hassle, but I don't used smashed words but the double
bracket syntax and the toc is OK.

Manutius


posts: 8

Ok, I now use the following template for templates/structures_toc-leaf.tpl:

Sorry, np does not work right, perhaps edit this else just look at the code.

{if $numbering}{$structure_tree.prefix} {/if}{if $structure_tree.page_alias}{$structure_tree.page_alias}{else}{$structure_tree.pageName}{/if}

Now just the depth is missing.

Regards,
Uli


Upcoming Events

1)  18 Apr 2024 14:00 GMT-0000
Tiki Roundtable Meeting
2)  16 May 2024 14:00 GMT-0000
Tiki Roundtable Meeting
3)  20 Jun 2024 14:00 GMT-0000
Tiki Roundtable Meeting
4)  18 Jul 2024 14:00 GMT-0000
Tiki Roundtable Meeting
5)  15 Aug 2024 14:00 GMT-0000
Tiki Roundtable Meeting
6)  19 Sep 2024 14:00 GMT-0000
Tiki Roundtable Meeting
7) 
Tiki birthday
8)  17 Oct 2024 14:00 GMT-0000
Tiki Roundtable Meeting
9)  21 Nov 2024 14:00 GMT-0000
Tiki Roundtable Meeting
10)  19 Dec 2024 14:00 GMT-0000
Tiki Roundtable Meeting