Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

menus can have custom views #3

Open
kdocki opened this issue Mar 24, 2014 · 0 comments
Open

menus can have custom views #3

kdocki opened this issue Mar 24, 2014 · 0 comments

Comments

@kdocki
Copy link
Contributor

kdocki commented Mar 24, 2014

The menu system will be beneficial to if we can do something like this in our layout

   <?= nav('main-menu') ?>

This will bring in the menu for 'main-menu'.

If we want a custom view instead of the default publish::navigation.menu we can pass that as a second parameter... and any data as the 3rd parameter.

   <?= nav('main', 'layouts.custom.navigation', compact('user')) ?>
@kdocki kdocki changed the title menus have custom view menus can have custom views Mar 24, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant