<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Adding new layout pages to 'Customize Dashboard' in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/adding-new-layout-pages-to-customize-dashboard/m-p/264724#M217854</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Firstly… what version of Alfresco are you coding against?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The layouts you can select from are defined in the "/components/dashboard/customise-layout" WebScript (in HEAD they are defined in the JS controller, in previous versions they are defined in the FreeMarker template). The layouts all specify a templateId attribute which maps to a Surf "template-instance". However, you are right that they all define a big grid. This is done because each dashlet is a Component and gets bound to a Region and each "cell" in the grid defined by the template is rendered as a region.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Each dashboard is actually rendered by the org/alfresco/dashboard template (defined by the "dashboard.ftl" and "dashboard.js" files which uses the "gridClass" and "gridColumnX" properties to render the grid. "The gridClass " property relates YUI classes that provide CSS layout controls (see &lt;/SPAN&gt;&lt;A href="http://developer.yahoo.com/yui/grids/" rel="nofollow noopener noreferrer"&gt;http://developer.yahoo.com/yui/grids/&lt;/A&gt;&lt;SPAN&gt;).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You should just be able to define your own template instance and set it as a new "templateId" in the customize-layout WebScript (if you're using HEAD then you'll be able to extend the controller directly, if you're using anything else then you'll have to copy/paste the WebScript to the "web-extension" path. However, you should bear in mind that you'll need to also setup the customize dashlets WebScript to allow you use the new layout and that you'll need to ensure that your layout renders regions that dashlets can be bound into.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I hope that helps!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Dave&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 27 Sep 2012 09:09:17 GMT</pubDate>
    <dc:creator>ddraper</dc:creator>
    <dc:date>2012-09-27T09:09:17Z</dc:date>
    <item>
      <title>Adding new layout pages to 'Customize Dashboard'</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/adding-new-layout-pages-to-customize-dashboard/m-p/264723#M217853</link>
      <description>I have two questions.1. I'd like to add a custom layout to the layout pages.&amp;nbsp; (Customize Dashboard &amp;gt; Change Layout &amp;gt; New Custom Layout Page).2. I'd like the custom layout to have a stacked grid.Right now there are 4 pages shown by default.I'd like to have a new custom layout that has a stacked</description>
      <pubDate>Wed, 26 Sep 2012 14:25:20 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/adding-new-layout-pages-to-customize-dashboard/m-p/264723#M217853</guid>
      <dc:creator>tstephens</dc:creator>
      <dc:date>2012-09-26T14:25:20Z</dc:date>
    </item>
    <item>
      <title>Re: Adding new layout pages to 'Customize Dashboard'</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/adding-new-layout-pages-to-customize-dashboard/m-p/264724#M217854</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Firstly… what version of Alfresco are you coding against?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The layouts you can select from are defined in the "/components/dashboard/customise-layout" WebScript (in HEAD they are defined in the JS controller, in previous versions they are defined in the FreeMarker template). The layouts all specify a templateId attribute which maps to a Surf "template-instance". However, you are right that they all define a big grid. This is done because each dashlet is a Component and gets bound to a Region and each "cell" in the grid defined by the template is rendered as a region.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Each dashboard is actually rendered by the org/alfresco/dashboard template (defined by the "dashboard.ftl" and "dashboard.js" files which uses the "gridClass" and "gridColumnX" properties to render the grid. "The gridClass " property relates YUI classes that provide CSS layout controls (see &lt;/SPAN&gt;&lt;A href="http://developer.yahoo.com/yui/grids/" rel="nofollow noopener noreferrer"&gt;http://developer.yahoo.com/yui/grids/&lt;/A&gt;&lt;SPAN&gt;).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You should just be able to define your own template instance and set it as a new "templateId" in the customize-layout WebScript (if you're using HEAD then you'll be able to extend the controller directly, if you're using anything else then you'll have to copy/paste the WebScript to the "web-extension" path. However, you should bear in mind that you'll need to also setup the customize dashlets WebScript to allow you use the new layout and that you'll need to ensure that your layout renders regions that dashlets can be bound into.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I hope that helps!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Dave&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Sep 2012 09:09:17 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/adding-new-layout-pages-to-customize-dashboard/m-p/264724#M217854</guid>
      <dc:creator>ddraper</dc:creator>
      <dc:date>2012-09-27T09:09:17Z</dc:date>
    </item>
    <item>
      <title>Re: Adding new layout pages to 'Customize Dashboard'</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/adding-new-layout-pages-to-customize-dashboard/m-p/264725#M217855</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello, I am trying to do do a custom layout for the Dashboard as the case described above. I have followed your instructions by ddraper, and so far I can see my layout in the customize-dashboard options but when I try to apply it, Alfresco displays this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;" &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;This is an unconfigured page. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;User Dashboard &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Please check the page configuration. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;What can I be missing? Any hints would be appreciated.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Oct 2014 09:06:00 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/adding-new-layout-pages-to-customize-dashboard/m-p/264725#M217855</guid>
      <dc:creator>mrca_506</dc:creator>
      <dc:date>2014-10-08T09:06:00Z</dc:date>
    </item>
  </channel>
</rss>

