HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.
How to Create a Dropdown-Menu
vrijvlinder
MVP
Enable the AddMenuItem plugin, input the link and name of the link in the fields, lets say the link is home, going to your home site.
place a link or links like this in your default.master.php where the others are I put it before the activity link.
$this->Menu->AddLink('Home', T('Mobile View'), 'profile/mobile');
$this->Menu->AddLink('Home', T('New Discussion'),'/post/discussion');
Notice the first name is the same, that will place the other links under that link.
see example here
Tagged:
1
Comments
This will also work if you add external links to the array. The first link you added using the addmenuitem (Home) becomes the parent of those extra links and they appear in a drop down .
$this->Menu->AddLink('Home', T('YouTube'),'http://www.youtube.com');
❌ ✊ ♥. ¸. ••. ¸♥¸. ••. ¸♥ ✊ ❌