Skip to content
This repository has been archived by the owner on Apr 2, 2023. It is now read-only.

Make menus dynamic #53

Open
uberswe opened this issue Jan 17, 2021 · 1 comment
Open

Make menus dynamic #53

uberswe opened this issue Jan 17, 2021 · 1 comment
Assignees
Labels
enhancement New feature or request

Comments

@uberswe
Copy link
Owner

uberswe commented Jan 17, 2021

Currently there is no way to manage menus. It would be good if menus are stored in the database similar to how pages work.

@uberswe uberswe added the enhancement New feature or request label Jan 17, 2021
@uberswe uberswe self-assigned this Jan 17, 2021
@uberswe
Copy link
Owner Author

uberswe commented Mar 27, 2021

This task is more complicated than I initially thought but I am making some progress. Some things that make this complex is that you can have several menus, I consider each section a MenuSection and each section has one or more MenuItem. A MenuItem may or may not be shown based on the following checks.

  • The current user has permission to see the item
  • The current user is authenticated
  • A context variable, such as site id, is needed to display this item
  • A site setting or global setting can show or hide the item

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant