ASPX templates
Version 3.x > ASPX templates > SubMenuIndicators in ListMenu View modes: 
User avatar
Member
Member
imuir-amplifystudios - 12/22/2008 3:07:18 PM
   
SubMenuIndicators in ListMenu
I'm trying to add SubMenuIndicators to a CMSListMenu and I'm getting some unexpected results.

The indicator image only shows up when the menu is already open. Is there a way to make it visible even when the submenu is collapsed. Then users will know which menu items have children.

Any ideas on how to fix this?

User avatar
Kentico Support
Kentico Support
kentico_jurajo - 1/6/2009 8:36:15 AM
   
RE:SubMenuIndicators in ListMenu
Hi,

I assume that you mean the Tree Menu web part/control since List Menu is always expanded by default and if it is collapsed it is achieved by the CSS styles. I have check the web part and also control and it works fine in portal engine and also in ASPX templates. Could you please describe us with more details what exactly you are using and setting?

Best Regards,
Juraj Ondrus

User avatar
Member
Member
imuir-amplifystudios - 1/12/2009 12:25:20 PM
   
RE:SubMenuIndicators in ListMenu
<cms:CMSListMenu ID="testMenu" runat="server" Path="/%" ClassNames="custom.sidebarfolder;CMS.MenuItem" DisplayOnlySelectedPath="true" SubmenuIndicator="~/App_Styles/images/menu_plus.gif" />

That's the code I'm using. The menu expands correctly on pages within subfolders, but the submenuindicators do not display correctly.

The indicator is not displayed on submenu tems unless I'm on a page that's contained within the submenu. There is no way to tell which links are a submenu until after you've clicked on them.

User avatar
Kentico Support
Kentico Support
kentico_jurajo - 1/13/2009 6:22:26 AM
   
RE:SubMenuIndicators in ListMenu
Hi,

Could you please check your CSS styles? It seems that your styles are hiding the sub menu indicator. In general it is working fine and also, by default list menu items are expanded, so I assume that you are collapsing them using some CSS styles.

Best Regards,
Juraj Ondrus

User avatar
Member
Member
imuir-amplifystudios - 1/13/2009 10:06:55 AM
   
RE:SubMenuIndicators in ListMenu
I'm not using CSS to hide the submenus, I'm using DisplayOnlySelectedPath to hide all but the current submenu.

We tried using CSS, but it isn't really an option because the class that denotes the current active submenu is only attached to the lowest level item. For CSS to be a valid option every li or ul in the current selected path would need a class. It does no good to set display properties on a submenu if it's parent menu is hidden.

It's beginning to seem like this just isn't a feature within the menu controls available in the CMS.

User avatar
Member
Member
imuir-amplifystudios - 1/13/2009 10:10:43 AM
   
RE:SubMenuIndicators in ListMenu
Here's the example site we're working with:

http://claremontsavings.gbkdev.com/Business-Banking/Small-Business.aspx

The submenuindicator is showing up for the current submenu, but not for personal banking, which is also a submenu.

If we set DisplayCurrentPathOnly to false, it shows the indicators, but also shows all submenus. This doesn't work for CSS because the Highlighted CSS class is applied to the Small Business Checking Link, but not to the Business Banking submenu.

User avatar
Kentico Support
Kentico Support
kentico_jurajo - 1/14/2009 3:04:36 AM
   
RE:SubMenuIndicators in ListMenu
Hi,

Thank you for additional information. I have investigate this behavior and found out that this is by design. If you set the "DisplayOnlySelectedPath" the sub menu indicator is ignored. I am sorry for this inconvenience.

Could you please try to use Tree menu? I hope it will cover your needs. If not, the last option is to change the RenderedHTML property and modify it to your needs.


Best Regards,
Juraj Ondrus

User avatar
Member
Member
danielrae - 12/21/2010 9:48:42 AM
   
RE:SubMenuIndicators in ListMenu
Just to add my 2 cents, I expected the behaviour of the sub-menu indicator image to appear IF the item had sub-items.

User avatar
Kentico Support
Kentico Support
kentico_zdenekc - 12/22/2010 9:28:39 AM
   
RE:SubMenuIndicators in ListMenu
Hi,

To summarize... do you want the sub-menu indicator images be shown in all places when "Display only selected path" is enabled? It is shown for the selected path.

I'm asking because last previous reply is over one year old, so I'm trying to get in picture, if there are still any issues...

Regards,
Zdenek

User avatar
Member
Member
Erik@amplifystudios.com - 12/22/2010 9:42:24 AM
   
RE:SubMenuIndicators in ListMenu
I represent the company (Amplify Studios) that originally posted this issue. We believe the submenu indicator should display regardless of whether or not it is the currently selected path. Without it, there is no way to know which menu items have submenu items.

The site we were working on that could use this is http://claremontsavings.com. Here is the markup for the CMSListMenu we're using:


<cms:CMSListMenu ID="testMenu" runat="server" Path="/%" ClassNames="custom.sidebarfolder;CMS.MenuItem" DisplayOnlySelectedPath="true" SubmenuIndicator="~/App_Styles/images/menu_plus.gif" />


As you can see if you look at the menu, the indicator should ideally should before you click the menu to expand it; then there should be an "expanded" version so the indicator shows the parent has been opened.

Hope this helps.

Erik

User avatar
Kentico Support
Kentico Support
kentico_zdenekc - 12/23/2010 8:44:53 PM
   
RE:SubMenuIndicators in ListMenu
Erik,

The CSS ListMenu just simply renders li/ul structure. The submenu indicator not displayed may be an issue, I agree.
What you are speaking about can be also achieved using javascript code (and proper css), that shows the part of the list that is selected and hides the previously selected.
There should be many examples on this using jQuery or similar libraries, something labelled accordion or tree folder menu etc.

Could you please optionally point us to some particular implementation that can be seen somewhere on the web?

Regards,
Zdenek.