You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to make the noLinkFormat parameter work with jQuery UI Accordion. Theoretically, I need to surround the non-linking menu entry with something distinguishable to jQuery like
With that, I don't see anything that I can hook jQuery UI accordion onto. Am I missing something? Is there a way to do that? Or to set the parameters to create the kind of hooks that it needs?
The text was updated successfully, but these errors were encountered:
I'm trying to make the noLinkFormat parameter work with jQuery UI Accordion. That mean that the non-linking elements of the menu array need to be surrounded by a HTML block element, preferably <h3>. All of the link elements under a non-linking element need to be surrounded by <div></div>. For example:
As I'm sure you're aware, the jQuery Accordion widget is a very commonly used component of jQuery. Surely there must be a way to use it with the wonderful cake-menu_builder.
I'm trying to make the noLinkFormat parameter work with jQuery UI Accordion. Theoretically, I need to surround the non-linking menu entry with something distinguishable to jQuery like
tags. Here's what I tried initially:In the helper array:
'Menu.MenuBuilder' => array(
'noLinkFormat' => '
%s
','authField' => 'role',
'authVar' => 'user',
'authModel' => 'Users.User'
),
In the menu array itself:
array(
'title' => 'Learning Resources',
'permissions' => array(''),
'children' => array(
array(
'title' => 'Collections',
'url' => 'admin/collections/index',
and so
Unfortunately, that produced unclickable "Learning Resources" entry in the menu that looked like this in the source code:
Learning Resources
So I changed my menu array to look like this:
array(
'title' => 'Learning Resources',
'url' => '#',
'permissions' => array(''),
'children' => array(
array( and so on
However, cake-menu then totally ignored my noLinkFormat parameter and produced this kind of source code:
With that, I don't see anything that I can hook jQuery UI accordion onto. Am I missing something? Is there a way to do that? Or to set the parameters to create the kind of hooks that it needs?
The text was updated successfully, but these errors were encountered: