<?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 How to extend alfresco-template.ftl in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/how-to-extend-alfresco-template-ftl/m-p/82390#M25327</link>
    <description>&lt;P&gt;I need to add SiteAdmin authentication and hence need to extend the alfresco-template.ftl file. It is present in&amp;nbsp;target/share-war/WEB-INF/classes/alfresco/templates/org/alfresco/include/alfresco-template.ftl . How to extend it. Below is the code snip where I want to add authentication for site-admin.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&amp;lt;#if page?? &amp;amp;&amp;amp; (page.authentication="user" || page.authentication="admin")&amp;gt;&lt;BR /&gt;Alfresco.util.Ajax.jsonGet({&lt;BR /&gt;url: Alfresco.constants.URL_CONTEXT + "service/modules/authenticated?noCache=" + new Date().getTime() + "&amp;amp;a=${page.authentication?html}"&lt;BR /&gt;});&lt;/P&gt;</description>
    <pubDate>Thu, 24 Sep 2020 06:54:24 GMT</pubDate>
    <dc:creator>Pravesh</dc:creator>
    <dc:date>2020-09-24T06:54:24Z</dc:date>
    <item>
      <title>How to extend alfresco-template.ftl</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/how-to-extend-alfresco-template-ftl/m-p/82390#M25327</link>
      <description>&lt;P&gt;I need to add SiteAdmin authentication and hence need to extend the alfresco-template.ftl file. It is present in&amp;nbsp;target/share-war/WEB-INF/classes/alfresco/templates/org/alfresco/include/alfresco-template.ftl . How to extend it. Below is the code snip where I want to add authentication for site-admin.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&amp;lt;#if page?? &amp;amp;&amp;amp; (page.authentication="user" || page.authentication="admin")&amp;gt;&lt;BR /&gt;Alfresco.util.Ajax.jsonGet({&lt;BR /&gt;url: Alfresco.constants.URL_CONTEXT + "service/modules/authenticated?noCache=" + new Date().getTime() + "&amp;amp;a=${page.authentication?html}"&lt;BR /&gt;});&lt;/P&gt;</description>
      <pubDate>Thu, 24 Sep 2020 06:54:24 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/how-to-extend-alfresco-template-ftl/m-p/82390#M25327</guid>
      <dc:creator>Pravesh</dc:creator>
      <dc:date>2020-09-24T06:54:24Z</dc:date>
    </item>
    <item>
      <title>Re: How to extend alfresco-template.ftl</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/how-to-extend-alfresco-template-ftl/m-p/82391#M25328</link>
      <description>&lt;P&gt;You can try extension module to override existing resources.&lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.alfresco.com/5.1/concepts/dev-extensions-share-surf-extension-modules.html" target="_blank" rel="nofollow noopener noreferrer"&gt;https://docs.alfresco.com/5.1/concepts/dev-extensions-share-surf-extension-modules.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.alfresco.com/4.2/tasks/dev-extensions-share-tutorials-fm-temp-customize.html" target="_blank" rel="nofollow noopener noreferrer"&gt;https://docs.alfresco.com/4.2/tasks/dev-extensions-share-tutorials-fm-temp-customize.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Ex.&lt;/P&gt;&lt;PRE&gt;&amp;lt;extension&amp;gt;
	&amp;lt;modules&amp;gt;
		&amp;lt;module&amp;gt;
			&amp;lt;id&amp;gt;FTL&amp;lt;/id&amp;gt;
			&amp;lt;version&amp;gt;1.0&amp;lt;/version&amp;gt;
			&amp;lt;auto-deploy&amp;gt;true&amp;lt;/auto-deploy&amp;gt;
			&amp;lt;customizations&amp;gt;
				&amp;lt;customization&amp;gt;
			&amp;lt;targetPackageRoot&amp;gt;org.alfresco.include&amp;lt;/targetPackageRoot&amp;gt;
			&amp;lt;sourcePackageRoot&amp;gt;pk.alfresco&amp;lt;/sourcePackageRoot&amp;gt;
				&amp;lt;/customization&amp;gt;
			&amp;lt;/customizations&amp;gt;
		&amp;lt;/module&amp;gt;
	&amp;lt;/modules&amp;gt;
&amp;lt;/extension&amp;gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 29 Sep 2020 06:06:28 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/how-to-extend-alfresco-template-ftl/m-p/82391#M25328</guid>
      <dc:creator>sp2</dc:creator>
      <dc:date>2020-09-29T06:06:28Z</dc:date>
    </item>
  </channel>
</rss>

