Jump to content

Move "notifications" to sidebar


visiba

Recommended Posts

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!

Link to comment
Share on other sites

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. :idea:

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated