Skip to content

Weight option for "Security" Menu tab (Local task menu) #16

Description

@dbjpanda

There should be a weight option inside Tfa configuration page for "Security" menu . So that admin can configure the weight of Security menu according to his/her wish. He/She may want to keep this menu just after "Edit" menu or may want atlast. Please suggest so that i can code accordingly.

Activity

  1. therealssj commented on Apr 6, 2016

    @therealssj
    Contributor

    What do you mean by security menu?

  2. dbjpanda commented on Apr 7, 2016

    @dbjpanda
    MemberAuthor

    Check the Security menu (or Local task menu ) in tfa_basic.links.task.yml

  3. changed the title [-]Weight option for Security menu [/-] [+]Weight option for "Security" Menu tab (Local task menu)[/+] on Apr 7, 2016
  4. nerdstein commented on Apr 7, 2016

    @nerdstein
    Contributor

    Let me try to understand the use case better. The user story would be...

    As an administrator, I want to be able to set the tab weight on an authenticated user's local tasks

    Is this correct?

    One concern that I have is that this is not a "global" setting. Often, this weight value will be user specific. Each user could potentially have a different set of tabs depending on their permissions.

    I am curious - what happens if you remove the weight from tfa_basic.links.task.yml? Does it append at the end? It might be worth exploring that use case instead of this approach

  5. dbjpanda commented on Apr 7, 2016

    @dbjpanda
    MemberAuthor

    Answer to your first question : Yes you are correct.
    If we remove the weight from tfa_basic.links.task.yml, it is still working as per the admin configuration.

  6. nerdstein commented on Apr 7, 2016

    @nerdstein
    Contributor

    OK. I think I get this better now.

    The module is hardcoding the weight, which does not empower an administrator to move it at their discretion.

    But, by removing the weight attribute of that link, is an administrator able to override it? Is there something in the menu system that would allow an admin to configure this? If so, we probably do not need this to be configurable. We would just remove the "weight" attribute

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions