Dear Sirs,
I have the accordion effect working great however, I want to retain the menu state (e.g. which section is open) when a user clicks a particular link and the site loads a new page.
How do I do this?.
Also, when the name of the element its biger than the the accordion menu width it does not work properly, how do i do to make the menu to rearreange the height of one element to fit all the name?
e.g:
<?php
$items = array(
array(
'name' => 'NORMAL SIZE',
'link' => '#',
'icon' => 'google',
'active' => 'dashboard',
'sub' => array(
array(
'name' => 'THIS IS THE VERYYYYY LONG NAMEEE THAT IM TELLING YOU',
'link' => '#',
),
array(
'name' => 'normal size 2',
'link' => '#',
),
array(
'name' => 'another normal size',
'link' => '#',
),
array(
'name' => 'normal size 3',
'link' => '#',
),
array(
'name' => 'THIS IS ANOTHEEEEEEER VERYYYY LONG NAMEEE THAT IM TELLING YOU',
'link' => '#',
),
)
)
);
?>
in the layout main i call the menu like this
<div class="span-8 last">
<div id="sidebar">
<?php $this->widget('ext.menu.EMenu', array('items' => $items)); ?>
</div>
</div>
Ps: I need to use the colspan-8 because its the width i need in my web app.
Also, i send you a screen capture of what i’m talking about
Thanks in Advance