<?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: how to add a custom site page in share 4.0.d in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/how-to-add-a-custom-site-page-in-share-4-0-d/m-p/275960#M229090</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;BTW many good references on the internet e.g.:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://wiki.alfresco.com/wiki/Share_Custom_Pages" rel="nofollow noopener noreferrer"&gt;http://wiki.alfresco.com/wiki/Share_Custom_Pages&lt;/A&gt;&lt;BR /&gt;&lt;A href="http://docs.alfresco.com/4.0/topic/com.alfresco.enterprise.doc/tasks/tutorial-share-add-page.html" rel="nofollow noopener noreferrer"&gt;http://docs.alfresco.com/4.0/topic/com.alfresco.enterprise.doc/tasks/tutorial-share-add-page.html&lt;/A&gt;&lt;BR /&gt;&lt;A href="http://blogs.alfresco.com/wp/ddraper/" rel="nofollow noopener noreferrer"&gt;http://blogs.alfresco.com/wp/ddraper/&lt;/A&gt;&lt;BR /&gt;&lt;A href="http://ecmarchitect.com/alfresco-developer-guide" rel="nofollow noopener noreferrer"&gt;http://ecmarchitect.com/alfresco-developer-guide&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 23 May 2012 18:41:16 GMT</pubDate>
    <dc:creator>arnoldschrijve1</dc:creator>
    <dc:date>2012-05-23T18:41:16Z</dc:date>
    <item>
      <title>how to add a custom site page in share 4.0.d</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-add-a-custom-site-page-in-share-4-0-d/m-p/275958#M229088</link>
      <description>Hi alli am using share 4.0.d(Community Edition), i want to add a custom page for my site . can anyone help mewith steps to add a custom site page in 4.thanx in advanceRegardsPmrreddy</description>
      <pubDate>Tue, 22 May 2012 08:19:07 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-add-a-custom-site-page-in-share-4-0-d/m-p/275958#M229088</guid>
      <dc:creator>pmrreddy</dc:creator>
      <dc:date>2012-05-22T08:19:07Z</dc:date>
    </item>
    <item>
      <title>Re: how to add a custom site page in share 4.0.d</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-add-a-custom-site-page-in-share-4-0-d/m-p/275959#M229089</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Easiest way to extend is to place your files below &amp;lt;tomcat-dir&amp;gt;/shared/classes/alfresco/web-extension or &amp;lt;tomcat-dir&amp;gt;/webapps/share/WEB-INF/classes/alfresco/web-extension directory. Use the same directory structure as in the parent classes/alfresco, so create a 'messages', 'site-data', 'site-webscripts' and 'templates' folder in this location.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Now you create the following files to define a new page (look for examples to similar files in share webapp):&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;- create a freemarker template my-page.ftl in templates/com/yourcompany&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Here you define the html structure of the page and regions to which you can bind components/webscripts that render content. Look for an example at documentlibrary.ftl&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;- create a template instance my-page.xml in site-data/template-instances&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The template-type element should refer to freemarker template (com/yourcompany/my-page). Add components that bind a certain webscript (based on url) to regions defined in your freemarker template.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;- create a my-page.xml in site-data/pages&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;This is the actual page declaration. The template-instance element is my-page. You can choose an authentication level (none, user, admin) as well.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;- create a presets.xml in site-data/presets&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Look at presets.xml that exists share/WEB-INF/classes/alfresco/site-data/presets and copy the 'site-dashboard' section to your own presets.xml.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Add your page to the preset:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&amp;lt;sitePages&amp;gt;[{"pageId":"my-page"}]&amp;lt;/sitePages&amp;gt;&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;SPAN&gt;- create a share-config-custom.xml in the root of web-extension dir&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Copy the SitePages section from share/WEB-INF/classes/alfresco/share-config.xml into this file and edit as follows:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&amp;nbsp;&amp;nbsp; &amp;lt;config evaluator="string-compare" condition="SitePages"&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;pages&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;page id="my-page"&amp;gt;my-page&amp;lt;/page&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/pages&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;lt;/config&amp;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;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;The page is yours!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 May 2012 18:31:15 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-add-a-custom-site-page-in-share-4-0-d/m-p/275959#M229089</guid>
      <dc:creator>arnoldschrijve1</dc:creator>
      <dc:date>2012-05-23T18:31:15Z</dc:date>
    </item>
    <item>
      <title>Re: how to add a custom site page in share 4.0.d</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-add-a-custom-site-page-in-share-4-0-d/m-p/275960#M229090</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;BTW many good references on the internet e.g.:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://wiki.alfresco.com/wiki/Share_Custom_Pages" rel="nofollow noopener noreferrer"&gt;http://wiki.alfresco.com/wiki/Share_Custom_Pages&lt;/A&gt;&lt;BR /&gt;&lt;A href="http://docs.alfresco.com/4.0/topic/com.alfresco.enterprise.doc/tasks/tutorial-share-add-page.html" rel="nofollow noopener noreferrer"&gt;http://docs.alfresco.com/4.0/topic/com.alfresco.enterprise.doc/tasks/tutorial-share-add-page.html&lt;/A&gt;&lt;BR /&gt;&lt;A href="http://blogs.alfresco.com/wp/ddraper/" rel="nofollow noopener noreferrer"&gt;http://blogs.alfresco.com/wp/ddraper/&lt;/A&gt;&lt;BR /&gt;&lt;A href="http://ecmarchitect.com/alfresco-developer-guide" rel="nofollow noopener noreferrer"&gt;http://ecmarchitect.com/alfresco-developer-guide&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 May 2012 18:41:16 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-add-a-custom-site-page-in-share-4-0-d/m-p/275960#M229090</guid>
      <dc:creator>arnoldschrijve1</dc:creator>
      <dc:date>2012-05-23T18:41:16Z</dc:date>
    </item>
  </channel>
</rss>

