Page 1 of 1

[solved] How do i remove "Current page is:"?

Posted: Thu May 01, 2008 6:47 pm
by Fratyr
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:

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}
Cant find anything regard to hierarhy T_T what do i need to remove?

Re: How do i remove "Current page is:"?

Posted: Thu May 01, 2008 6:55 pm
by RonnyK
Attach the accessibility stylesheet to the template....

Re: How do i remove "Current page is:"?

Posted: Thu May 01, 2008 7:16 pm
by Fratyr
It is already.
I see my menu as it should be, the only problem is that adds some *urg* text "Current page is"
And another menu items is numbered.. :(
I want it to display menutext only.

Re: How do i remove "Current page is:"?

Posted: Thu May 01, 2008 7:19 pm
by Nullig
The "Accessibility and cross-browser tools" stylesheet hides those. Are you sure it's attached to the template you're using for your page?

Can you post a link?

Nullig

Re: How do i remove "Current page is:"?

Posted: Thu May 01, 2008 7:27 pm
by Fratyr
Because of my origin, this post "Attach the accessibility stylesheet to the template...." was making no sense for me, now i get it.

Thank you. Solved. ;)