Announcement

Collapse
No announcement yet.

Hide Entity Tab

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

  • Hide Entity Tab

    Hi,
    How can we hide particular entity from User Interface tablist and Preferences tablist?
    Please help.

  • #2
    Hello
    Disable them in roles

    Comment


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

      Comment


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

        Comment


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

          Comment


          • #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


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

              Comment


              • #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


                • #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


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

                    Thanks tanya

                    Comment

                    Working...
                    X