friendsofvictoire / menu-widget
Victoire DCMS Menu widget
Installs: 13 733
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 9
Forks: 3
Open Issues: 6
Type:symfony-bundle
Requires
- php: >=5.5.9
- friendsofvictoire/listing-widget: ~2.0
- symfony/framework-bundle: ~2.8|~3.0
- victoire/victoire: >=2.0.0|~3.0
This package is not auto-updated.
Last update: 2021-12-21 22:41:56 UTC
README
##What is the purpose of this bundle
This bundles gives you access to the Menu Widget. With this widget, you can install a header menu, footer menu, or a menu directly on a page.
The categories can link to :
- Internal pages
- URL
- A routing setting
- An anchor - i.e a widget within a page
##Set Up Victoire
If you haven't already, you can follow the steps to set up Victoire here
##Install the Menu Bundle :
Run the following composer command :
php composer.phar require friendsofvictoire/menu-widget
###Reminder
Do not forget to add the bundle in your AppKernel !
class AppKernel extends Kernel { public function registerBundles() { $bundles = array( ... new Victoire\Widget\MenuBundle\VictoireWidgetMenuBundle(), ); return $bundles; } }
##Tricks
You can then use this widget menu in any web site. To get a full responsive menu, you can add these lines in your layout :
<header id="header">
<nav class="container">
<div id="header-logo" class="vic-mini-slot">
{{ cms_slot_widgets('header_logo') }}
</div>
<button id="header-links-list-trigger" class="hidden-md hidden-lg"><i class="fa fa-bars"></i></button>
<div id="header-linkList" class="vic-mini-slot">
{{ cms_slot_widgets('header_nav') }}
</div>
</nav>
</header>