weaverryan / iomenuplugin Goto Github PK
View Code? Open in Web Editor NEWA plugin to make arbitrarily large menus easier to write.
Home Page: http://www.symfony-project.org/plugins/ioMenuPlugin
License: MIT License
A plugin to make arbitrarily large menus easier to write.
Home Page: http://www.symfony-project.org/plugins/ioMenuPlugin
License: MIT License
I think it was very nice if we can set the ulClass of each item.
like this:
$menu->addChild('Homepage', '@homepage');
$menu['Homepage']->ulClass('subnav')->addChild('About Us', '@about_us');
$menu['Homepage']->addChild('other_link', '#');
$menu->addChild('Blog', '@blog');
$menu['Homepage']->ulClass('blog_subnav')->addChild('Archive', '@blog_archive');
$menu['Homepage']->addChild('other_link', '#');
Hi :)
I have my domain in https and since i put the ssl, the isCurrent method of ioMenuItem seems buggy.
In the code you have
$url = $this->getCurrentUri();
$menuUrl = $this->getUri(array('absolute' => true));
In my context :
$menuUrl = "http://domain.com/ad"
and $url = "http://domain.com:443/ad"
When the isCurrent method do the comparison, $menuUrl and $url are not equal.
Do you have an idea how to fix that ? :)
Thanks a lot !
I tried to configure my menu using app.yml and fromArray() method, but the option "url_options" is not exported. The same occurs when I use ->setUrlOptions() from PHP and toArray() function.
I checked the to and fromArray functions and I found that the code for this attribute is missing
Can you fix it, please?
Regards
162 $menu = new ioMenuItem(array('id' => 'root_menu');
163 $menu->addChild('overview', '@homepage');
164 $menu->addChild('comments', '@comments');
should be
162 $menu = new ioMenu(array('id' => 'root_menu');
163 $menu->addChild('overview', '@homepage');
164 $menu->addChild('comments', '@comments');
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.