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}"
});