ASPX templates
Version 5.x > ASPX templates > How to get a Folder showing in a CMSListMenu control View modes: 
User avatar
Member
Member
evanmcd - 3/1/2010 2:07:15 PM
   
How to get a Folder showing in a CMSListMenu control
Hi,

I'm trying to get a structure like this:

Page.aspx
Page2.aspx
Folder1
--- Page3.aspx
Folder2
--- Page4.aspx

working where the CMSListMenu shows only Folder 1 and Folder 2. My first question is: how do I get them to show up at all? I've checked 'Behaves as Page (menu item) type' in the Document type settings, but that doesn't seem to work.

My second question is: how would I get the list item of the folder to link to a specific page in the folder (like Folder1/Landing.aspx).

Thanks for any help you can offer.

Evan

User avatar
Kentico Consulting
Kentico Consulting
kentico_mirekr - 3/2/2010 6:28:27 AM
   
RE:How to get a Folder showing in a CMSListMenu control
Hi,

CMSListMenu menu web part/control has property called (Document types) ClassNames where you need to specify all of the document types which you would like to display within this web part/control. Secondly, please check if your documents in your content tree are configured to use “Show in navigation” option (CMS Desk -> Content -> choose your page -> Properties -> Menu section).

Regarding your second question, you can use “URL redirection” option for this purpose which you can find in CMS Desk -> Content -> choose your page -> Properties -> Menu section.

Best regards,
Miroslav Remias

User avatar
Member
Member
evanmcd - 3/2/2010 8:14:57 AM
   
RE:How to get a Folder showing in a CMSListMenu control
Hi Miroslav,

Thanks for the reply. I tried adding the Folder Doc type like so

ClassNames="Folder"

but they did not show up even so. Is there some other setting that also needs to be present in order to make that work?

Perhaps I should mention the main reason I want to use the CMSListMenu in this case: I'm assuming that the menu will show the menu item as highlighted (by providing a different css class) whenever the user is on a page that resides inside that folder. Is that the case?

Thanks.

Evan

User avatar
Kentico Consulting
Kentico Consulting
kentico_mirekr - 3/3/2010 5:09:59 AM
   
RE:How to get a Folder showing in a CMSListMenu control
Hi,
You need to use full class name. Example:

ClassNames="CMS.MenuItem;CMS.Folder"

Yes, menu renders different CSS class for highlighted item.

Best regards,
Miroslav Remias.

User avatar
Member
Member
evanmcd - 3/3/2010 3:34:09 PM
   
RE:How to get a Folder showing in a CMSListMenu control
Thanks Miroslav, that worked.

Evan