<?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: amp file in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/amp-file/m-p/276338#M229468</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;My understanding is that you customize Web Quick Start by putting your overrides (if you are using tomcat) in&amp;nbsp; tomcat\shared\classes\alfresco\web-extension. A mechanism in Share will use the configuration made here in instead of the shipped configurations. All *-context.xml files will be loaded during the start up phase. For customizing templates, components etc you also have to do this in \tomcat\shared\classes\alfresco\web-extension.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I.E you want to customize tomcat\webapps\share\WEB-INF\classes\alfresco\site-webscripts\org\alfresco\components\documentlibrary\repo-toolbar.get.html.ftl you have to create a copy of the file in tomcat\shared\classes\alfresco\site-webscripts\org\alfresco\components\documentlibrary\repo-toolbar.get.html.ftl and modify it there. Share will thus pick up this file instead of the one Share ships with. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Disclaimer: I'm new to Alfresco - so i might misinform you on this.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 28 Sep 2011 07:59:58 GMT</pubDate>
    <dc:creator>sam1980</dc:creator>
    <dc:date>2011-09-28T07:59:58Z</dc:date>
    <item>
      <title>amp file</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/amp-file/m-p/276337#M229467</link>
      <description>Hi,what is the best option to customize web quick start ? All the tutorials / Wiki / code comments seem to suggest that it's necessary to change directly the core codes: templates, pages, css, etc…With share and alfresco it's always better to use amp files. Do you suggest to do the same also for Web</description>
      <pubDate>Tue, 27 Sep 2011 17:15:56 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/amp-file/m-p/276337#M229467</guid>
      <dc:creator>marco_altieri</dc:creator>
      <dc:date>2011-09-27T17:15:56Z</dc:date>
    </item>
    <item>
      <title>Re: amp file</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/amp-file/m-p/276338#M229468</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;My understanding is that you customize Web Quick Start by putting your overrides (if you are using tomcat) in&amp;nbsp; tomcat\shared\classes\alfresco\web-extension. A mechanism in Share will use the configuration made here in instead of the shipped configurations. All *-context.xml files will be loaded during the start up phase. For customizing templates, components etc you also have to do this in \tomcat\shared\classes\alfresco\web-extension.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I.E you want to customize tomcat\webapps\share\WEB-INF\classes\alfresco\site-webscripts\org\alfresco\components\documentlibrary\repo-toolbar.get.html.ftl you have to create a copy of the file in tomcat\shared\classes\alfresco\site-webscripts\org\alfresco\components\documentlibrary\repo-toolbar.get.html.ftl and modify it there. Share will thus pick up this file instead of the one Share ships with. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Disclaimer: I'm new to Alfresco - so i might misinform you on this.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Sep 2011 07:59:58 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/amp-file/m-p/276338#M229468</guid>
      <dc:creator>sam1980</dc:creator>
      <dc:date>2011-09-28T07:59:58Z</dc:date>
    </item>
    <item>
      <title>Re: amp file</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/amp-file/m-p/276339#M229469</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Sam,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I think that you are right for all the customizations in alfresco and share. I have worked on other projects with share and I knew how to do it.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The problem is that I need to customize Web Quick Start. For example the templates five-block.ftl or the webscript&amp;nbsp; common/page.ftl&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Are you saying that I can use the same folders in shared to overwrite the WQS templates and webscripts?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Marco&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Sep 2011 09:34:55 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/amp-file/m-p/276339#M229469</guid>
      <dc:creator>marco_altieri</dc:creator>
      <dc:date>2011-09-28T09:34:55Z</dc:date>
    </item>
    <item>
      <title>Re: amp file</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/amp-file/m-p/276340#M229470</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;My understanding is that the wcmqs-webapp is only provided as an example and *could* be a starting point for build a web site utilizing Web Quick Start. In the project I'm currently involved we stripped down the wcmqs webapp to the bare minimum and built our own templates for our own needs.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Sep 2011 16:39:55 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/amp-file/m-p/276340#M229470</guid>
      <dc:creator>sam1980</dc:creator>
      <dc:date>2011-09-28T16:39:55Z</dc:date>
    </item>
    <item>
      <title>Re: amp file</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/amp-file/m-p/276341#M229471</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Sam,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;this is also my understanding. I just wanted to know if someone has found a better practice.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Sep 2011 13:45:23 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/amp-file/m-p/276341#M229471</guid>
      <dc:creator>marco_altieri</dc:creator>
      <dc:date>2011-09-29T13:45:23Z</dc:date>
    </item>
    <item>
      <title>Re: amp file</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/amp-file/m-p/276342#M229472</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Although it's true that the example webapp was actually intended to be purely an example, it is built on Surf which is pretty extensible.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It's a little hard to explain why (but come back to me if you'd like to know, and I'll have a go at it), but if you want to define a new template (or override an existing one) then place its XML descriptor (such as "five-block.xml") into this folder on the classpath (below &amp;lt;tomcat&amp;gt;/shared/classes/, for instance):&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;surf/site/templates/&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;/CODE&gt;&lt;/PRE&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Similarly, if you want to add or change a page definition, place its XML descriptor (such as "homepage.xml") into this folder on the classpath:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;surf/site/pages/&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;/CODE&gt;&lt;/PRE&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If you want to add a new webscript then you can add them in this location on the classpath:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;surf/webscripts/&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;/CODE&gt;&lt;/PRE&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;And, finally, to add new templates (the actual FreeMarker template such as "five-block.ftl" - not the descriptor files) then put them on the classpath here:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;surf/templates/&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;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Sep 2011 21:44:44 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/amp-file/m-p/276342#M229472</guid>
      <dc:creator>bremmington</dc:creator>
      <dc:date>2011-09-30T21:44:44Z</dc:date>
    </item>
    <item>
      <title>Re: amp file</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/amp-file/m-p/276343#M229473</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Found out that I had to package functionality in an amp file if i wanted to include custom class files, such as attaching behaviors to the custom content types, ref this post &lt;/SPAN&gt;&lt;A href="https://forums.alfresco.com/en/viewtopic.php?f=10&amp;amp;t=39109" rel="nofollow noopener noreferrer"&gt;https://forums.alfresco.com/en/viewtopic.php?f=10&amp;amp;t=39109&lt;/A&gt;&lt;SPAN&gt;. Here is description of how to set up a maven build for the amp-file using the maven-amp-plugin: &lt;/SPAN&gt;&lt;A href="http://www.open-source-ecm.com/2010/04/maven-alfresco-creating-amp.html" rel="nofollow noopener noreferrer"&gt;http://www.open-source-ecm.com/2010/04/maven-alfresco-creating-amp.html&lt;/A&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Oct 2011 05:59:27 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/amp-file/m-p/276343#M229473</guid>
      <dc:creator>sam1980</dc:creator>
      <dc:date>2011-10-04T05:59:27Z</dc:date>
    </item>
  </channel>
</rss>

