+1-888-365-2779
Try Now
More in this section

Forums / 3.x Pre-release forums (retired) / Skinning multiple menus in a theme

Skinning multiple menus in a theme

5 posts, 0 answered
  1. bnye
    bnye avatar
    332 posts
    Registered:
    22 Sep 2005
    04 Jan 2007
    Link to this post
    Is is possible to have 2 menus on a page and still have their skin controlled through a .skin file?

    Ideally when I would change a Theme both my Horizontal menu and vertical sub menu would change skins.

    One option is to apply the [themable] attribute to a separate UserControl that holds each menu. Is that the best practice? Or is there an easier way?

    Thanks in advance.

    Ben
  2. UI Crew
    UI Crew avatar
    99 posts
    Registered:
    24 Sep 2012
    05 Jan 2007
    Link to this post
    Hi Ben,

    It is possible to do this I have done it before myself. All you do is in the user control where you have the radmenu you specify the skin in the radmenu tag in the usercontrol rather than in the .skin file of the theme like this - skin=Web20 - where Web20 is the name of the skin you would like to apply.

    Or I believe if you use the radmenu control already in sitefinity you can go into the properties of the control in sitefinity and specify the skin manually in there.

    This will then look for that skin folder in the /radcontrols/menu/skins/ directory I believe.

    The only downside is if you change the theme the menu will stay with the same style as before of course.

    Cheers,

    Seth
  3. bnye
    bnye avatar
    332 posts
    Registered:
    22 Sep 2005
    05 Jan 2007
    Link to this post
    Hey Seth

    Yeah, that's a bummer. That is definitely the catch. If you specify the SkinsPath in the control. When you switch Themes it stays the same.

    A possible work around I was going to take a look at:

    Extend the RadMenu to create a separate dll(without actually creating any new functionality). By calling it something else you could put it in the skin file as a separate control. Then each menu can specify a separate skinspath in the .skin file. Changing the Theme can then change both menus.

    Does that sound like a bad idea Seth?

    Or you could just specify a public property in the usercontrol for skinspath and set it programmatically. Then do like you said and set the property in Sitefintiy at the Template level. The downside to that is you have to make new templates or edit individual pages in order to get the effect. But that might be easier then that other crazy idea.

    Anyway, thanks for the feedback.

    Ben
  4. UI Crew
    UI Crew avatar
    99 posts
    Registered:
    24 Sep 2012
    10 Jan 2007
    Link to this post
    Hi,

    Sounds like just manually changing the skin would be easier... how often are you going to change the theme?

    Cheers,

    Seth
  5. bnye
    bnye avatar
    332 posts
    Registered:
    22 Sep 2005
    10 Jan 2007
    Link to this post
    I think you are right. There aren't that many pages, so manually changing the skin would be the best. The client wants a different color scheme for each "main section". Something like blue for products, green for support, and gray for company info...that sort of thing.
Register for webinar
5 posts, 0 answered