Site structure
Version 2.x > Site structure > CMSTreeMenu View modes: 
User avatar
Member
Member
nicolam@datacom.co.nz - 11/4/2007 9:50:21 PM
   
CMSTreeMenu
Hi,

How does the RenderedHTML property work with the CMSTreeMenu control? What I want to achieve is for the second level of the navigation to have a different css class, currently I can only seem to indent it.

Thanks.

User avatar
Member
Member
kentico_vitaja - 11/6/2007 4:08:39 PM
   
RE:CMSTreeMenu
Hi,

Yes, you can style second level items in CMSTreeMenu. You just need to add prefix for level of menu you would like to style.

For example you may add CSS prefix: ;sub; which adds to second level prefix "sub". Then you can go to CSS stylesheet and add class like this:
.subCMSTreeMenuLink {
background: blue;
}

This will add blue background to second level of menu.

Best regards,
Vita Janecek

User avatar
Member
Member
Nik - 11/7/2007 1:30:55 AM
   
RE:CMSTreeMenu
How do you add a css prefix to a specific level? When I added a css prefix (cssprefix="sub") to the tree menu it added the prefix to all menu levels.

User avatar
Member
Member
kentico_vitaja - 11/8/2007 10:17:57 AM
   
RE:CMSTreeMenu
Hi,

When you add semicolon (before or after prefix) you divide css prefix by one level. So in my example I specified ;sub; - this means that prefix is not applied to first level and is applied to second level and again not applied to third level.

Best regards,
Vita Janecek