<?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: Alfresco 5.0 UI Customization in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/alfresco-5-0-ui-customization/m-p/296258#M249388</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi bigmclargehuge,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The best place to look for information like this is the Alfresco-provided documentation, which is up to date for Alfresco 5 (&lt;/SPAN&gt;&lt;A href="http://docs.alfresco.com/community/concepts/dev-for-developers.html" rel="nofollow noopener noreferrer"&gt;http://docs.alfresco.com/community/concepts/dev-for-developers.html&lt;/A&gt;&lt;SPAN&gt;). They can give the basics to understand how the Share UI is put together so you understand what you need to do.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Each page in Share is controlled by a template and split into regions.&amp;nbsp; Each region is rendered by a webscript, which runs on the server and defined and configures the client-side widgets that are used to create the DOM structure and provide the UI behaviours.&amp;nbsp; In order to make a change to how the UI behaves, you have to first know what region (and so what webscript) it is in. The surfbug tool (which can be activated using &lt;/SPAN&gt;&lt;A href="http://--server--/share/page/surfBugStatus" rel="nofollow noopener noreferrer"&gt;http://--server--/share/page/surfBugStatus&lt;/A&gt;&lt;SPAN&gt;).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Once you identify the webscript and potentially the JS widgets involved in that drawing that region, you can look at the code to understand what needs to be changed to achieve your desired effect.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;E.g. your first question talks about the number of items per page in the document library.&amp;nbsp; This is on the documentlibrary page, in the documentlist_v2 region, so we'd end up looking at the documentlist_v2 webscript (share\WEB-INF\classes\alfresco\site-webscripts\org\alfresco\components\documentlibrary\documentlist-v2.get.*).&amp;nbsp; This shows that the region is built on the client side using the widget Alfresco.DocumentList (share\components\documentlibrary\documentlist.js).&amp;nbsp; This js widget can take as an initialisation option the number of items to show per page, but that value is not provided by the webscript, but has a default value of 50.&amp;nbsp; To do the customisation you're looking for here, you would need to augment the webscript controller to pass an extra options argument to set the page size you want.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;How to do that is given here (&lt;/SPAN&gt;&lt;A href="http://docs.alfresco.com/community/tasks/dev-extensions-share-tutorials-js-customize.html" rel="nofollow noopener noreferrer"&gt;http://docs.alfresco.com/community/tasks/dev-extensions-share-tutorials-js-customize.html&lt;/A&gt;&lt;SPAN&gt;) and in this case you'd need to add something like &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;model.widgets[1].options.pageSize = 100;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Basically, this code will get the widget definition for the documentlist widget (which is just a JSON object) and add an extra option called pageSize, which is one of the options the widget is already built to handle.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Your second query is easier (thankfully!) although it sounds like it might be more complex.&amp;nbsp; There is a particular configuration setting exposed for controlling how the folder tree behaves, that can just be changed using a share-custom.config file, or other config extension file.&amp;nbsp; Simply providing something like:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;&amp;lt;config evaluator="string-compare" condition="DocumentLibrary"&amp;gt;&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;!– Document List –&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;lt;doclist&amp;gt;&lt;BR /&gt;…&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;tree&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;!–&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Whether the folder Tree component should enumerate child folders or not.&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; This is a relatively expensive operation, so should be set to "false" for Repositories with broad folder structures.&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; –&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;evaluate-child-folders&amp;gt;false&amp;lt;/evaluate-child-folders&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/tree&amp;gt;&lt;BR /&gt;…&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;lt;/doclist&amp;gt;&lt;BR /&gt;&amp;lt;/config&amp;gt;&lt;BR /&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Setting the evaluate-child-folders parameter to false will stop share from automatically opening subfolders in the tree.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Extending share can be complex, because it is a large application but there a lot of very flexible extension points available both in the Share configuration and via the Spring Surf framework's extension mechanisms.&amp;nbsp; I'd recommend doing a little reading of the Alfresco docs, the 5.0 version of the Share development area seems to have just undergone some good updates, so it's worth spending a little time to understand the architecture and the options available&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Steven&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 03 Sep 2015 00:25:01 GMT</pubDate>
    <dc:creator>steven_okennedy</dc:creator>
    <dc:date>2015-09-03T00:25:01Z</dc:date>
    <item>
      <title>Alfresco 5.0 UI Customization</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/alfresco-5-0-ui-customization/m-p/296257#M249387</link>
      <description>Hey Everyone, I have currently using Alfresco 5.0 Community and I am looking for some information about customizing the share UI. I have been searching around the forums and the internet, but I am only finding out dated information. Most of the fixes do not carry across to 5.0 it seems. - The first</description>
      <pubDate>Tue, 11 Aug 2015 13:56:38 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/alfresco-5-0-ui-customization/m-p/296257#M249387</guid>
      <dc:creator>bigmclargehuge</dc:creator>
      <dc:date>2015-08-11T13:56:38Z</dc:date>
    </item>
    <item>
      <title>Re: Alfresco 5.0 UI Customization</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/alfresco-5-0-ui-customization/m-p/296258#M249388</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi bigmclargehuge,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The best place to look for information like this is the Alfresco-provided documentation, which is up to date for Alfresco 5 (&lt;/SPAN&gt;&lt;A href="http://docs.alfresco.com/community/concepts/dev-for-developers.html" rel="nofollow noopener noreferrer"&gt;http://docs.alfresco.com/community/concepts/dev-for-developers.html&lt;/A&gt;&lt;SPAN&gt;). They can give the basics to understand how the Share UI is put together so you understand what you need to do.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Each page in Share is controlled by a template and split into regions.&amp;nbsp; Each region is rendered by a webscript, which runs on the server and defined and configures the client-side widgets that are used to create the DOM structure and provide the UI behaviours.&amp;nbsp; In order to make a change to how the UI behaves, you have to first know what region (and so what webscript) it is in. The surfbug tool (which can be activated using &lt;/SPAN&gt;&lt;A href="http://--server--/share/page/surfBugStatus" rel="nofollow noopener noreferrer"&gt;http://--server--/share/page/surfBugStatus&lt;/A&gt;&lt;SPAN&gt;).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Once you identify the webscript and potentially the JS widgets involved in that drawing that region, you can look at the code to understand what needs to be changed to achieve your desired effect.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;E.g. your first question talks about the number of items per page in the document library.&amp;nbsp; This is on the documentlibrary page, in the documentlist_v2 region, so we'd end up looking at the documentlist_v2 webscript (share\WEB-INF\classes\alfresco\site-webscripts\org\alfresco\components\documentlibrary\documentlist-v2.get.*).&amp;nbsp; This shows that the region is built on the client side using the widget Alfresco.DocumentList (share\components\documentlibrary\documentlist.js).&amp;nbsp; This js widget can take as an initialisation option the number of items to show per page, but that value is not provided by the webscript, but has a default value of 50.&amp;nbsp; To do the customisation you're looking for here, you would need to augment the webscript controller to pass an extra options argument to set the page size you want.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;How to do that is given here (&lt;/SPAN&gt;&lt;A href="http://docs.alfresco.com/community/tasks/dev-extensions-share-tutorials-js-customize.html" rel="nofollow noopener noreferrer"&gt;http://docs.alfresco.com/community/tasks/dev-extensions-share-tutorials-js-customize.html&lt;/A&gt;&lt;SPAN&gt;) and in this case you'd need to add something like &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;model.widgets[1].options.pageSize = 100;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Basically, this code will get the widget definition for the documentlist widget (which is just a JSON object) and add an extra option called pageSize, which is one of the options the widget is already built to handle.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Your second query is easier (thankfully!) although it sounds like it might be more complex.&amp;nbsp; There is a particular configuration setting exposed for controlling how the folder tree behaves, that can just be changed using a share-custom.config file, or other config extension file.&amp;nbsp; Simply providing something like:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;&amp;lt;config evaluator="string-compare" condition="DocumentLibrary"&amp;gt;&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;!– Document List –&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;lt;doclist&amp;gt;&lt;BR /&gt;…&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;tree&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;!–&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Whether the folder Tree component should enumerate child folders or not.&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; This is a relatively expensive operation, so should be set to "false" for Repositories with broad folder structures.&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; –&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;evaluate-child-folders&amp;gt;false&amp;lt;/evaluate-child-folders&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/tree&amp;gt;&lt;BR /&gt;…&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;lt;/doclist&amp;gt;&lt;BR /&gt;&amp;lt;/config&amp;gt;&lt;BR /&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Setting the evaluate-child-folders parameter to false will stop share from automatically opening subfolders in the tree.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Extending share can be complex, because it is a large application but there a lot of very flexible extension points available both in the Share configuration and via the Spring Surf framework's extension mechanisms.&amp;nbsp; I'd recommend doing a little reading of the Alfresco docs, the 5.0 version of the Share development area seems to have just undergone some good updates, so it's worth spending a little time to understand the architecture and the options available&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Steven&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Sep 2015 00:25:01 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/alfresco-5-0-ui-customization/m-p/296258#M249388</guid>
      <dc:creator>steven_okennedy</dc:creator>
      <dc:date>2015-09-03T00:25:01Z</dc:date>
    </item>
  </channel>
</rss>

