Loading...
 
Features / Usability

Features / Usability


Structures & toc

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

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

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

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


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

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


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


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

No records to display

Why Register?

Register at tiki.org and you'll be able to use the account at any *.tiki.org site, thanks to the InterTiki feature. A valid email address is required to receive site notifications and occasional newsletters. You can opt out of these items at any time.