Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Vahini 2 posts 22 karma points
    Sep 21, 2011 @ 17:26
    Vahini
    0

    Problems while creating skin

    Hello,

    I have some problems while creating skin in Umbraco.
    I'm unable to see the Modify Template Skin button in the toolbar in canvas mode. I have created a subdirectory in the master pages folder for creating a skin and added skin.xml and i have also needed css and images files in place.  I have created a skin name "Evolve Skin" in master pages folder and refereed EvolveMaster.Master as the allowed root template in both skin.xml and skinning.config file. But i dont see Modify Template skin button when i right click on this template in Settings. Please help me out

    Also please help me on how to change skin if i have got two or more skins in my masterpages folder as subdirectories. Once i apply a skin i'm unable to switch to other skins as i always see Customise Skin option only in Canvas Mode. How to see Change skin option here. My actual requirement is to give the user ability to change skins dynamically

    Please help me out ASAP.

    Thanks in advance

  • Rich Green 2246 posts 4008 karma points
    Sep 21, 2011 @ 17:47
    Rich Green
    0

    Hey Vahini,

    Welcome to the forum!

    Skins in Umbraco are for a slightly different purpose and I'm not sure that they are best fit for your what you're trying to do.

    If the designs are the same with different CSS then I would let just add something to Umbraco to load the stylesheet the user has selected.

    Hope this makes sense.

    Rich 

  • Vahini 2 posts 22 karma points
    Sep 21, 2011 @ 17:53
    Vahini
    0

    Hello Rich,

     

    Thanks for the quick response.

    My designs are the same but with different CSS. In ASP.NET, we use "Theme" feature in Master pages to accomplish this task of changing skins. But how do i do that here in Umbraco. In my application, admin should have the capability of changing the skins whenever he wants to. How do i accomplish that in Umbraco?

    Thanks,

    Vahini

     

  • Rich Green 2246 posts 4008 karma points
    Sep 21, 2011 @ 18:20
    Rich Green
    0

    Hey Vahini,

    If it's just CSS then it's easy to implement in Umbraco.

    I would just add a DataType using http://ucomponents.codeplex.com/wikipage?title=FilePicker&referringTitle=Documentation which selects the StyleSheet.

    Or just add a drop down somewhere that selects the style.

    Either way the logic is XSLT or Razor would be 

    <head>

    <--xslt or razor macro here that uses logic based on above to render whichever stylesheet has been selected-->

    </head>

    This is a lot cleaner than Themes ands works really well, even though it's a simple solution.

    Rich

  • Thijs 97 posts 117 karma points
    Oct 05, 2011 @ 14:06
    Thijs
    0

    Did you ever managed to get that button showing in canvas mode? I have the same problem.

    Thijs

    *Edit: nevermind, I found a sollution

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies