Portal Engine Questions on portal engine and web parts.
Version 4.x > Portal Engine > cmslistmenu - disable 'active' functionality View modes: 
User avatar
Member
Member
adrian - 8/31/2009 5:19:04 PM
   
cmslistmenu - disable 'active' functionality
how can i disable the active page functionality?

basically, I want the generated html to be exactly the same on all pages.

i want this:

<li><a href="/People/dave.aspx" title="dave" >dave</a></li>

rather than this:
<li class="TOP"><span title="Bob" >Bob</span></li>


Thanks.

User avatar
Kentico Consulting
Kentico Consulting
kentico_mirekr - 9/1/2009 1:58:45 AM
   
RE:cmslistmenu - disable 'active' functionality
Hi,

Unfortunately, I’m little confused by your short explanation here. You have mentioned that you want to disable active functionality, but later you have mentioned that you want to have links in your menu navigation web part? Could you please try to describe us this in more detail way?

However, if you want to disable menu item links, you can do this in your particular page settings in Properties tab -> Menu section -> Inactive menu item. In this way, your menu items will be inactive in menu web parts.

However, if I got this wrong, you can use following web part settings to achieve your needs:

Display highlighted item as link:
Highlight all items in path:
Render CSS classes:

Best Regards,
Miroslav Remias.

User avatar
Member
Member
adrian - 9/1/2009 12:40:21 PM
   
RE:cmslistmenu - disable 'active' functionality
That doesn't quite help me. I think my terminology is confusing. Here is a better example:

On my homepage my menu looks something like this:

<li class="people"><a href="/People.aspx" >People</a>
<ul>
<li><a href="/People/Bob.aspx" >Bob</a></li>
<li><a href="/People/Dave.aspx" >Dave</a></li>
</ul>
</li>

But, on the 'People' page the same menu looks like this:

<li><a href="/People.aspx" >People</a>
<ul>
<li><a href="/People/Bob.aspx" >Bob</a></li>
<li><a href="/People/dave.aspx" >dave</a></li>
</ul>
</li>

class="people" has been dropped as a result of it being the current page.

I need the classes therefore I want the menu to be the same on all pages.

Thanks,
Adrian.

User avatar
Kentico Developer
Kentico Developer
kentico_martind - 9/3/2009 3:26:00 AM
   
RE:cmslistmenu - disable 'active' functionality
Hi Adrian,

It seems you have specified 'people' class into 'Properties -> Menu -> Menu item design - highlighted -> Menu item CSS class' field. Could you please try to specify it into 'Properties -> Menu -> Menu item design -> Menu item CSS class' field instead?

Best Regards,

Martin Dobsicek