I need to add SiteAdmin authentication and hence need to extend the alfresco-template.ftl file. It is present in 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.
<#if page?? && (page.authentication="user" || page.authentication="admin")>
Alfresco.util.Ajax.jsonGet({
url: Alfresco.constants.URL_CONTEXT + "service/modules/authenticated?noCache=" + new Date().getTime() + "&a=${page.authentication?html}"
});
You can try extension module to override existing resources.
https://docs.alfresco.com/5.1/concepts/dev-extensions-share-surf-extension-modules.html
https://docs.alfresco.com/4.2/tasks/dev-extensions-share-tutorials-fm-temp-customize.html
Ex.
<extension> <modules> <module> <id>FTL</id> <version>1.0</version> <auto-deploy>true</auto-deploy> <customizations> <customization> <targetPackageRoot>org.alfresco.include</targetPackageRoot> <sourcePackageRoot>pk.alfresco</sourcePackageRoot> </customization> </customizations> </module> </modules> </extension>
Ask for and offer help to other Alfresco Content Services Users and members of the Alfresco team.
Related links:
By using this site, you are agreeing to allow us to collect and use cookies as outlined in Alfresco’s Cookie Statement and Terms of Use (and you have a legitimate interest in Alfresco and our products, authorizing us to contact you in such methods). If you are not ok with these terms, please do not use this website.