09-24-2020 02:54 AM
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}"
});
09-29-2020 02:06 AM
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>
Explore our Alfresco products with the links below. Use labels to filter content by product module.