CodeSleeve / platform-publish

Add on publishing capabilities (pages and menus) to platform-core
3 stars 0 forks source link

menus can have custom views #3

Open kdocki opened 10 years ago

kdocki commented 10 years ago

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')) ?>