cancel
Showing results for 
Search instead for 
Did you mean: 

Best Method For Inserting Notification Under Share Header?

vamirr
Champ on-the-rise
Champ on-the-rise
My project requires that site managers notify site members that the site in which they are currently viewing contains sensitive or confidential material.  This notification must be at the top and the bottom of each page.

I've done this in 4.0 by overriding collaboration-title.get.html.ftl to include the simple code below:


<#if theme = "sensitiveInfo">
   <div class="notification">${msg("label.sensitiveInfo")}</div>
</#if>


The site managers simply select their site theme to be the one which displays the notification and it's applied to each page within the site.


I'm in the process of upgrading our installation to 4.2.2 and I'm a little perplexed as to how best accomplish this under the new Share header UI.  I've attached picture of a trivial mockup.    How should I go about doing this?  Creating a custom widget and adding that to the Share header seems like a lot of work for a simple div. I've used the Add content to an Alfresco Share page tutorial approach elsewhere, however I do not see that this works for the header.  

Your thoughts are appreciated.



1 REPLY 1

vamirr
Champ on-the-rise
Champ on-the-rise
You can extend the share-header.get.html.ftl to include the div.



<@markup id="notification-html" action="after" target="html">
<#if theme = "sensitiveInfo">
   <div class="notification">${msg("label.sensitiveInfo")}</div>
</#if>
</@>