cancel
Showing results for 
Search instead for 
Did you mean: 

Define theme on a site preset

marcus_svensson
Champ in-the-making
Champ in-the-making
Hi,

I'm looking for a way to define which theme that should be used for individual sites as default. I've got different site presets for the sites I'm using and would like each site preset to have its own theme.

I've tried to find information on how to do this on the wiki / forums and google without success.

What I thought would work was to define for each preset an override of the application default theme like this in my extension configuration but that does not work:


<module>
         <id>Public documents site changes</id>
         <auto-deploy>true</auto-deploy>

         <!– Base evaluator that decides if any of the customizations, components
            or configurations should be used –>
         <evaluator type="site.module.evaluator">
            <params>
               <sites>.*</sites>
               <sitePresets>public</sitePresets>
               <applyForNonSites>false</applyForNonSites>
            </params>
         </evaluator>
         <configurations>
            <config evaluator="string-compare" condition="WebFramework" replace="true">
               <web-framework>
                  <application-defaults>
                     <theme>greenTheme</theme>
                  </application-defaults>
               </web-framework>
            </config>
         </configurations>
      </module>



Anyone have an idea on how to accomplish this?

Marcus



Finally I managed to find where to make this configuration.

It was in my preset settings.
<code>
<preset id="public">

<pages>
         <page id="site/${siteid}/dashboard">
            <title>Collaboration site for public documents</title>
            <title-id>siteDashboard.public.title</title-id>
            <description>Collaboration site's dashboard page</description>
            <description-id>siteDashboard.public.description</description-id>
            <template-instance>dashboard-2-columns-wide-right
            </template-instance>
            <authentication>user</authentication>
            <properties>
               <sitePages>[{"pageId":"documentlibrary"}]</sitePages>
               <theme>greenTheme</theme>
            </properties>
         </page>
      </pages>
</preset>
<code>
1 REPLY 1

marcus_svensson
Champ in-the-making
Champ in-the-making
Finally I managed to find where to make this configuration.

It was in my preset settings.


<preset id="public">

<pages>
         <page id="site/${siteid}/dashboard">
            <title>Collaboration site for public documents</title>
            <title-id>siteDashboard.public.title</title-id>
            <description>Collaboration site's dashboard page</description>
            <description-id>siteDashboard.public.description</description-id>
            <template-instance>dashboard-2-columns-wide-right
            </template-instance>
            <authentication>user</authentication>
            <properties>
               <sitePages>[{"pageId":"documentlibrary"}]</sitePages>
               <theme>greenTheme</theme>
            </properties>
         </page>
      </pages>
</preset>