Page 1 of 1

site_mapper

Posted: Sun Oct 26, 2008 4:07 pm
by Pépou
Hello,

I just added a sitemap to my website. Here it is : http://www.carabinsnicois.fr/index.php?page=plan-du-site. As you can see, it's very difficult to understand the plan (there is not depth between the 1 and the 1.1 and the 1.1.1...).

Here is my site_mapper.tpl in my menumanager :

{* CSS classes used in this template:
.currentpage - The active/current page
.bullet_sectionheader - To style section header
hr.separator - To style the ruler for the separator *}
{if $count > 0}

{foreach from=$nodelist item=node}
{if $node->depth > $node->prevdepth}
{repeat string="" times=$node->depth-$node->prevdepth}
{elseif $node->depth prevdepth}
{repeat string="" times=$node->prevdepth-$node->depth}

{elseif $node->index > 0}
{/if}

{if $node->current == true}
url}" class="currentpage"{if $node->target ne ""} target="{$node->target}"{/if}> {$node->menutext}

{elseif $node->parent == true && $node->depth == 1}
url}" class="activeparent"{if $node->target ne ""} target="{$node->target}"{/if}> {$node->menutext}

{elseif $node->type == 'sectionheader'}
{$node->menutext}

{elseif $node->type == 'separator'}


{else}
url}"{if $node->target ne ""} target="{$node->target}"{/if}> {$node->menutext}

{/if}

{/foreach}

{repeat string="" times=$node->depth-1}

{/if}
How can I change it to add depth between the 1, the 1.1, and the 1.1.1. ?

I hope i've been clear enough.

Thank you in advance.

Re: site_mapper

Posted: Sun Oct 26, 2008 4:11 pm
by Augustas
Make use of $node->depth and $node->prevdepth variables.
Whenever the depth of the listed page is higher than previous make those line to appear shifted from the left, for example.
Not sure how much you know about programming and CSS.

Re: site_mapper

Posted: Sun Oct 26, 2008 4:31 pm
by Pépou
Not much. That's why i don't understand how and where I can use the $node->depth and $node->prevdepth variables..

Re: site_mapper

Posted: Tue Oct 28, 2008 6:23 pm
by Pépou
I'm really sorry but i really didn't get how can I put depth in my site_mapper..