04-30-2015 04:48 AM
05-11-2015 03:43 AM
<?xml version='1.0' encoding='UTF-8'?>
<template-instance>
<template-type>org/alfresco/mydashboard</template-type>
<description>custom no.of columns</description>
<properties>
<gridClass>yui-custom</gridClass>
<gridColumn1>5</gridColumn1>
<gridColumn2>5</gridColumn2>
<gridColumn3>5</gridColumn3>
<gridColumn4>5</gridColumn4>
<gridColumn5>5</gridColumn5>
<gridColumn6>5</gridColumn6>
</properties>
</template-instance>
<#include "include/alfresco-template.ftl" />
<@templateHeader />
<@templateBody>
<@markup id="alf-hd">
<div id="alf-hd">
<@region scope="global" id="share-header" chromeless="true"/>
</div>
</@>
<@markup id="bd">
<div id="bd">
<div class="yui-custom">
<div class="column1">
<@region id="component-1-1" scope="page"/>
<@region id="component-1-2" scope="page"/>
<div class="yui-g subcolumn1-1">
<@region id="component-1-3" scope="page" />
</div>
<div class="yui-g subcolumn1-2">
<@region id="component-2-3" scope="page" />
</div>
</div>
<div class="column2">
<@region id="component-2-1" scope="page"/>
<@region id="component-2-2" scope="page"/>
<div class="yui-g subcolumn2-1">
<@region id="component-3-3" scope="page" />
</div>
<div class="yui-g subcolumn2-2">
<@region id="component-4-3" scope="page" />
</div>
</div>
<div class="column3">
<@region id="component-3-1" scope="page"/>
<@region id="component-3-2" scope="page"/>
<div class="yui-g subcolumn3-1">
<@region id="component-5-3" scope="page" />
</div>
<div class="yui-g subcolumn3-2">
<@region id="component-6-3" scope="page" />
</div>
</div>
</div>
</div>
</@>
</@>
<@templateFooter>
<@markup id="alf-ft">
<div id="alf-ft">
<@region id="footer" scope="global"/>
</div>
</@>
</@>
.yui-custom .column1 .yui-g,
.yui-custom .column2 .yui-g,
.yui-custom .column3 .yui-g{
margin: 1.03%;
width: 47.9%;
float: left;
margin-top: -4%;
}
.yui-custom .column1,
.yui-custom .column3{
width: 25%;
margin-left: 0.99%;
float: left;
}
.yui-custom .column2{
width: 46%;
margin-left: 0.99%;
float: left;
}
"dashboard-my" : {
templateId: "dashboard-my",
noOfColumns: 6,
description: msg.get("custom template"),
//custom-dashboard.png is a png file that created and placed in below directory
icon: url.context + "/res/components/dashboard/images/custom-dashboard.png"}
};
01-19-2017 04:21 AM
I want to add custom layout which contains only 2 columns of same size in user dashboard page, so can anyone provide ftl for the same?
Tags
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.