Forum Discussion

Inactive User's avatar
Inactive User
12 years ago

Setting the skin for a custom page

Is it possible to set the skin for a custom page? It may be an obvious answer I'm just missing but I can't seem to figure it out. Thanks.

2 Replies

  • AdamN's avatar
    AdamN
    Khoros Oracle
    12 years ago

    Technically, it is possible; however, the ability to do so is not currently available via Studio. As such, this is a customization that Lithium Professional Services would have to perform on your behalf. If this is something you're interested in pursuing further, I'd suggest filing a case so that our Support team can work with you on the next steps.

  • Madmortem's avatar
    Madmortem
    Expert
    12 years ago

    I got the same problem and we found a simple, yet good working solution together with Lithium (Thanks a lot Filip :smileywink:).

     

    In the backend Lithium has a way to contribute to every page at the beginning of pageLoad, before the wrapper or skin is loaded. They added a logic for us there to load a custom component (named "common" - but can any other name as well).

     

    In this component we now can add any code we need. Herer is an example on how to assign differnet skins to custum pages, once the setup is made by Lithium:

     

    <#if page.name=="mycustompage">
      ${skin.set("myfirstskin")}
    <#elseif page.name=="testpage2">
      ${skin.set("mysecondskin")}
    <#elseif page.name=="pagenamehere">
      ${skin.set("skinnamehere")}
    </#if>

     As you see, you can always add new skins with another elseif-line.

     

    Hope that helps a bit till Lithium comes up with a commun solution to setting up skins to pages.

     

    Regards,

    Martin