Announcement

Collapse
No announcement yet.

Navbar custom links

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Navbar custom links

    Hi
    I have make custom links in client/res/templates/site/navbar.tpl

    after
    {{#each tabListDefs}} <li data-name="{{name}}"><a href="{{link}}" class="nav-link"><span class="full-label">{{label}}</span><span class="short-label" title="{{label}}">{{shortLabel}}</span></a></li> {{/each}} like this
    <li data-name="Custom link"><a href="#CustomLink">Custom link</a></li>
    it works, but I want to hide these custom links from portal users, could you help me to do that please?

  • #2
    pass isPortal in data function

    var isPortal = !!this.getUser().get('portalId')

    then you can use statement:
    {{#unless isPortal}}
    YOUR HTML HERE
    {{/unless}}

    Comment


    • #3
      Thank you for the information!

      Comment


      • #4
        How can I add such a custom link to the tabList so that it's available in Administration --> User Interface --> Tab List? (like all other "core" links)

        Comment

        Working...
        X