Project area home page template


Project area home page template

When creating a project space, the home page is now built from a XML file, which describes the service to be inserted in each zone.

The XML file is specific to each skin.

Create a file skins/[NOM_SKIN]/conf/project-home-model.xml in your charter used for project spaces, which contains :

<?xml version="1.0" encoding="UTF-8" ?> 
<model template="index"> 
    <zone id="bottom-left"> 
        <service id="org.ametys.plugins.workspaces.module.Members"> 
            <parameters> 
                <header i18n="true" catalogue="plugin.workspaces">PLUGINS_WORKSPACES_PROJECT_WORKSPACE_PAGE_INDEX_MODULE_USERS_TITLE</header> 
                <results-per-page>5</results-per-page> 
                <xslt>pages/services/modules/members/members-default.xsl</xslt> 
            </parameters> 
        </service> 
    </zone> 
    <zone id="bottom-right"> 
        <service id="org.ametys.plugins.workspaces.service.ActivityStream"> 
            <parameters> 
                <header i18n="true" catalogue="plugin.workspaces">PLUGINS_WORKSPACES_PROJECT_WORKSPACE_PAGE_INDEX_ACTIVITY_STREAM_TITLE</header> 
                <activities-per-page>5</activities-per-page> 
                <max-activities>20</max-activities> 
                <chronological-order>false</chronological-order> 
                <xslt>pages/services/activity-stream/activity-stream-default.xsl</xslt> 
            </parameters> 
        </service> 
    </zone> 
</model> 

 

 

Back to top

v1