ec-europa / og_menu Goto Github PK
View Code? Open in Web Editor NEWPort og_menu to Drupal 8
Port og_menu to Drupal 8
DESCRIPTION ----------- Enable users to manage menus inside Organic Groups. REQUIREMENTS ------------ - Organic Groups module (http://drupal.org/project/og). - Menu module. INSTALLATION ------------ - Enable the module. - Give "administer og menu" permission to the desired roles. - Visit the og menu configuration page to configure at will. - Enable group content types for use with OG Menu. USAGE ----- - Administrators can create OG menus through the regular menu interface at admin/structure/menu/add. Choose a group to associate with the menu. - Organic group members with the "administer og menu" permission can also manage menus at node/[nid]/og_menu. - "administer og menu" permission can be granted on global or group level. - Group content types can be enabled for use with OG Menu. Once enabled, users can add a menu link directly from the node creation form to any of the menu's they have access to. - For group types, users can create an associated menu by checking "Enable menu for this group" on the node edit/creation form. - You can enable the "OG Menu : single" and the "OG Menu : multiple" blocks at admin/build/block. - "OG Menu : single" will display the first available menu for the first available group in the context. - "OG Menu : multiple" will display all available menus for all available groups in the context. - OG menus won't show on the regular menu interface. They show up on admin/structure/og_menu. - Ability to hide OG Menu's from the block admin interface and on other places for some contrib modules. NOTES ----- Be aware that since menu administration forms are mostly duplicated, if a contrib module adds functionality to menu administration forms without additional permissions, these additions may be available for OG menu users with 'administer og menu' permission. This could allow these users to be able to do things you don't want them to. Please report these modules if you catch one. TODO/BUGS/FEATURE REQUESTS -------------------------- - See http://drupal.org/project/issues/og_menu. Please search before filing issues in order to prevent duplicates. - Please test the D7 release and report any bugs or suggestions you might find. UPGRADING FROM 6.x TO 7.x --------------------------- - There currently is no upgrade path! If you need an upgrade path, please file an issue UPGRADING FROM 7.x-2.x TO 7.x-3.x --------------------------------- - Update OG first! CREDITS ------- Originally authored and maintained by Scott Ash (ashsc). 7.x-3.x port contributors (sorry if anyone was forgotten): - bulldozer2003 - zipymonkey - jgraham - Jackinloadup - Wim Vanheste (rv0) (http://www.coworks.net) 7.x initial port contributors: - Stefan Vaduva (http://vamist.ro) - Nick Santamaria (http://www.itomic.com.au) - Frederik Grunta (Aeternum) - Wim Vanheste (rv0) (http://www.coworks.net) 7.x maintainers - Wim Vanheste (rv0) (http://www.coworks.net) 6.x-2.x maintainer - Julien De Luca (jide)
When a new menu instance is created or an existing is updated, the user is redirected to the edit screen.
Also, the View tab includes a save button that also redirects to Edit tab.
Also, the "Add link" button is visible to the Edit tab but not to the View tab.
Right now administrator has access to the create og menu instance page.
He can create an instance even if there are no groups. The page should instead present a message that there are no groups or even better that the creation should be occurring from within an OgGroup.
In src/Form/OgMenuInstanceForm.php file the isLocked method called is empty and there is no need for the check.
Also, several other codesniffer violations that can be fixed.
When you create a new OgMenu through the UI and you try to add a menu instance the og_group audience field is not hidden.
Steps I used to reproduce:
Enable og_menu module
Go to Admin>Structure>Menu>OgMenu
There should be a default navigation menu pre installed.
Press add new OgMenu
Give a random name (maybe not coliding with menus from core)
Save
Try to add menu instance for this menu
The audience field is visible
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.