Skip to content

Instantly share code, notes, and snippets.

@Nicofuma
Last active August 26, 2015 12:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Nicofuma/4799f76dd5cbf27cfd04 to your computer and use it in GitHub Desktop.
Save Nicofuma/4799f76dd5cbf27cfd04 to your computer and use it in GitHub Desktop.
tab > catégorie > module
module :
class:
- title
- route
- perms (or expression language with auth and other info available ?)
- handle()
definition:
- tag : module => <category_name> && order
category :
class:
- title
- route
- perms 'or expression language with auth and other info available (like module list) ?)
definition:
- tag : category => <tab_name> && order
tab :
class:
- title
- route
- perms 'or expression language with auth and other info available (like category list) ?)
definition:
- tag : tab => <type (acp, mcp, ucp etc...)> && order
- the herarchy is statically defined in the container (no more DB)
- module/category/tab defined as service
- a common base class to handle navigation
- title/route/herarchy/perms cached
- a manager to build the hierachy, handle navigation (used by the based class) acp/mcp/ucp agnostic
- navigation:
if only one category => move modules up and don't display the category
if empty tab (no module) => don't display
if empty category (no module) => don't display
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment