Hide Entity Tab

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • krishnapriya
    Senior Member
    • Aug 2017
    • 209

    Hide Entity Tab

    Hi,
    How can we hide particular entity from User Interface tablist and Preferences tablist?
    Please help.
  • tanya
    Senior Member
    • Jun 2014
    • 4308

    #2
    Hello
    Disable them in roles

    Comment

    • krishnapriya
      Senior Member
      • Aug 2017
      • 209

      #3
      Hi,
      I tried disabling them in roles. But not working, Still I can add them in tablists of settings=>userInterface and preference.

      Comment

      • tanya
        Senior Member
        • Jun 2014
        • 4308

        #4
        Check access in user profile. I made entity disabled and it doesn't shown

        Comment

        • krishnapriya
          Senior Member
          • Aug 2017
          • 209

          #5
          Hi,
          Whether the same will work for admin also?

          Comment

          • krishnapriya
            Senior Member
            • Aug 2017
            • 209

            #6
            1. As you said disabled or not set entities are not displayed in custom tablist creation of users.
            But this is not applied in case of admin.(I set admin role also.)

            2. If we set the entities as disabled or not set in roles, users cannot create/update/delete those entities.
            I just want to hide one entity from the custom tablist but it should be accessible to the users.

            How can I achieve this.
            Please help.

            Thanks.


            Comment

            • tanya
              Senior Member
              • Jun 2014
              • 4308

              #7
              watch this tutorial https://www.youtube.com/watch?v=i7InUOOJoFc

              Comment

              • krishnapriya
                Senior Member
                • Aug 2017
                • 209

                #8
                Hi,

                Thanks tanya.

                This was what I needed. Changed in array-field-add.tpl

                {{#unless optionList}}
                {{translate 'No Data'}}
                {{/unless}}
                <ul class="list-group">
                {{#each optionList}}

                {{#ifNotEqual this 'Entity'}}
                <li class="list-group-item clearfix">
                {{#if ../translatedOptions}}{{prop ../../translatedOptions this}}{{else}}{{./this}}{{/if}}
                <button class="btn btn-default pull-right" data-value="{{./this}}" data-action="add">{{translate 'Add'}}</button>
                </li>
                {{/ifNotEqual}}

                {{/each}}
                </ul>

                Comment

                • tanya
                  Senior Member
                  • Jun 2014
                  • 4308

                  #9
                  if you need to hide Entity from tab list for all users, you can set in scope (Resources/metadata/scopes)
                  "tab": false
                  This is easier and can be upgrade safe

                  Comment

                  • krishnapriya
                    Senior Member
                    • Aug 2017
                    • 209

                    #10
                    That's great. Will do like that.

                    Thanks tanya

                    Comment

                    Working...