visiba Posted July 17, 2016 Share Posted July 17, 2016 Hello, We want to get rid of the "notifications" link in the header of the six template. The idea would be to move the notifications to the left sidebar instead. Anyone has an idea if this possible? We've tried experimenting with a hook file but couldn't get it to work. Thanks! 0 Quote Link to comment Share on other sites More sharing options...
brian! Posted July 17, 2016 Share Posted July 17, 2016 Hi, We want to get rid of the "notifications" link in the header of the six template. The idea would be to move the notifications to the left sidebar instead. obviously, for the first half of that you just remove the notifications block of code from header.tpl... Anyone has an idea if this possible?We've tried experimenting with a hook file but couldn't get it to work. the simplest way to do it would be to take the above code from header.tpl, tweak it a little and add it to the end of sidebar.tpl.... {if $clientAlerts|count gt 0 and $sidebar eq $primarySidebar and $templatefile eq 'clientareahome'} <div menuItemName="Notifications" class="panel panel-default"> <div class="panel-heading"> <h3 class="panel-title"><i class="fa fa-info"></i> {$LANG.notifications}</h3> </div> {foreach $clientAlerts as $alert} <div class="clientalert text-{$alert->getSeverity()}">{$alert->getMessage()}{$c}{if $alert->getLinkText()} <a href="{$alert->getLink()}" class="btn btn-xs btn-{$alert->getSeverity()}">{$alert->getLinkText()}</a>{/if}</div> {/foreach} </div> {/if} the above will add it as a primary sidebar... if you want it to be a secondary, just change the variable in the {if} statement... also, as it's coded, the notifications sidebar would appear only on the client's homepage, but you could adjust the {if} statement to make it available elsewhere to suit your own needs. 0 Quote Link to comment Share on other sites More sharing options...
visiba Posted July 19, 2016 Author Share Posted July 19, 2016 Thanks a lot Brian, we will test it out very soon! 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.