[solved] How do i remove "Current page is:"?
Posted: Thu May 01, 2008 6:47 pm
Hey guys.
Im new to this CMS, but i have some urgent work to do.
I'll appropriate if you help me to get rid of this noisy text in my menu "Current page is:"
I've just created a database in menu module and called it "simple", dont know if i really attached it somehow to the page or its not attached, anyway my template uses {menu} tag only and it seems to display it properly instead of that Current page is..
The code is:
Cant find anything regard to hierarhy T_T what do i need to remove?
Im new to this CMS, but i have some urgent work to do.
I'll appropriate if you help me to get rid of this noisy text in my menu "Current page is:"
I've just created a database in menu module and called it "simple", dont know if i really attached it somehow to the page or its not attached, anyway my template uses {menu} tag only and it seems to display it properly instead of that Current page is..
The code is:
Code: Select all
{if $count > 0}
<ul class="top_menu">
{foreach from=$nodelist item=node}
{if $node->depth > $node->prevdepth}
{repeat string="<ul>" times=$node->depth-$node->prevdepth}
{elseif $node->depth < $node->prevdepth}
{repeat string="</li></ul>" times=$node->prevdepth-$node->depth}
</li>
{elseif $node->index > 0}</li>
{/if}
{if $node->current == true}
<li><a href="{$node->url}" class="current"{if $node->target ne ""} target="{$node->target}"{/if}> {$node->menutext} </a>
{elseif $node->parent == true && $node->depth == 1}
<li class="activeparent"> <a href="{$node->url}" class="activeparent"{if $node->target ne ""} target="{$node->target}"{/if}> {$node->menutext} </a>
{elseif $node->type == 'sectionheader'}
<li class="sectionheader">{$node->menutext}
{elseif $node->type == 'separator'}
<li style="list-style-type: none;"> <hr class="separator" />
{else}
<li><a href="{$node->url}"{if $node->target ne ""} target="{$node->target}"{/if}> {$node->menutext} </a>
{/if}
{/foreach}
{repeat string="</li></ul>" times=$node->depth-1}</li>
</ul>
{/if}