AnsweredAssumed Answered

Default Collaboration Site Template

Question asked by gojko on Jul 7, 2014
Hello,

I'm trying to modify the collaboration site template. I've successfully changed the template for users themselves in /opt/alfresco-4.2.f/tomcat/webapps/share/WEB-INF/classes/alfresco/site-data/presets/presets.xml

Now, when editing the presets.xml file, I'v added all the site pages available, but some widgets are not appearing. Either I've configured widgets with wrong names, or some widgets can not be included in presets.xml. Out of these listed here:


<!– Well known preset used to generate the default Collaboration Site dashboard –>
   <preset id="site-dashboard">
      <components>        
         <!– title –>
         <component>
            <scope>page</scope>
            <region-id>title</region-id>
            <source-id>site/${siteid}/dashboard</source-id>
            <url>/components/title/collaboration-title</url>
         </component>
         <!– navigation –>
         <component>
            <scope>page</scope>
            <region-id>navigation</region-id>
            <source-id>site/${siteid}/dashboard</source-id>
            <url>/components/navigation/collaboration-navigation</url>
         </component>
         <!– dashboard components –>
         <!– Removed the welcome screen
         <component>
            <scope>page</scope>
            <region-id>full-width-dashlet</region-id>
            <source-id>site/${siteid}/dashboard</source-id>
            <url>/components/dashlets/dynamic-welcome</url>
            <properties>
               <dashboardType>site</dashboardType>
            </properties>
         </component>
         –>
         <component>
            <scope>page</scope>
            <region-id>component-1-1</region-id>
            <source-id>site/${siteid}/dashboard</source-id>
            <url>/components/dashlets/colleagues</url>
            <properties>
               <height>807</height>
            </properties>
         </component>
         <component>
            <scope>page</scope>
            <region-id>component-1-2</region-id>
            <source-id>site/${siteid}/dashboard</source-id>
            <url>/components/dashlets/data-lists</url>
            <properties>
                <height>191</height>
            </properties>                          
         </component>
         <component>
             <scope>page</scope>
             <region-id>component-1-3</region-id>
             <source-id>site/${siteid}/dashboard</source-id>
             <url>/components/dashlets/activityfeed</url>
             <properties>
                 <height>301</height>
             </properties>          
         </component>                                                                                                
         <component>
            <scope>page</scope>
            <region-id>component-2-1</region-id>
            <source-id>site/${siteid}/dashboard</source-id>
            <url>/components/dashlets/calendar</url>
            <properties>
                <height>242</height>
            </properties>
         </component>
         <component>
            <scope>page</scope>
            <region-id>component-2-2</region-id>
            <source-id>site/${siteid}/dashboard</source-id>
            <url>/components/dashlets/docsummary</url>
            <properties>
                <height>558</height>
            </properties>                           
         </component>
         <component>
             <scope>page</scope>
             <region-id>component-2-3</region-id>
             <source-id>site/${siteid}/dashboard</source-id>
             <url>/components/dashlets/search</url>    
             <properties>
                 <height>496</height>           
             </properties>                           
          </component>
          <component>
             <scope>page</scope>
             <region-id>component-2-3</region-id>
             <source-id>site/${siteid}/dashboard</source-id>
             <url>/components/dashlets/search</url>   
             <properties>
                 <height>496</height>
             </properties>
          </component>                                                                                                 
      </components>
      <pages>
         <page id="site/${siteid}/dashboard">
            <title>Collaboration Site Dashboard</title>
            <title-id>page.siteDashboard.title</title-id>
            <description>Collaboration site's dashboard page</description>
            <description-id>page.siteDashboard.description</description-id>
            <template-instance>dashboard-3-columns</template-instance>
            <authentication>user</authentication>
            <properties>
               <sitePages>[{"pageId":"documentlibrary"},{"pageId":"calendar"},{"pageId":"links"},{"pageId":"discussions-topiclist"},{"pageId":"data-lists"},{"pageId":"wiki-page"},{"pageId":"blog-postlist"}]</sitePages>
            </properties>
         </page>
      </pages>
   </preset>


the ones that are NOT appearing are: data-lists; 2-3 search.

My questions are:
1) Where to find the widgets exactly, so I'm sure the names are correct?
2) Is there a way to export the current site as template? I already have a site that I would like to use as template.



Outcomes