05-18-2017 08:55 PM
Disable Site Manager being able to change the themes of a site.
A pretty simple question, but so far I haven't had any luck being able to go through with this.
The only option I've seen is deleting the current themes, apart from the one you wish to keep but this is more or a hack-job solution.
I wish for an Admin to be able to change and set the entire site theme through the admin tools, but disable site managers from doing so to individual sites through the site customization page.
Using Alfresco 5.2.
Regards,
Tom.
05-19-2017 04:08 AM
Basically you need to customize/override/extend customise-pages webscript.
Simple solution will be remove below code from customise-pages.get.html.ftl file.
<!-- Theme -->
<h2>${msg("header.theme")}</h2>
<div class="flat-button">
<select id="${el}-theme-menu">
<#list themes as t>
<option value="${t.id}"<#if t.selected> selected="selected"</#if>>${t.title?html}</option>
</#list>
</select>
</div>
05-22-2017 05:20 AM
In addition you might want to secure the web scripts that handle the form submission for that page so that nobody can craft a form submission using browser tools, e.g. Firefox HTTPRequester plugin.
Explore our Alfresco products with the links below. Use labels to filter content by product module.