Hi everybody!
This is my first post to the Yii forum. Personally, I prefer reading about similar use cases when I have a problem, but this time it seems that I can not find the solution anywhere.
I would like to use the CJuiAccordion widget, but I need to make a vertical accordion menu in which only two top-level items are expandable, and the rest are just with links to somewhere. All top-level items (whether expandable or not) should be of the same CSS design.
If we paraphrase the code provided in the widget documentation, this should look like:
$this->widget('zii.widgets.jui.CJuiAccordion', array(
'panels'=>array(
'panel 1'=>'content for panel 1',
// panels 2-4 should be non-expandable
'panel 2'=>'<img src='http://www.yiiframework.com/forum/public/style_emoticons/default/huh.gif' class='bbc_emoticon' alt='???' />',
'panel 3'=>'<img src='http://www.yiiframework.com/forum/public/style_emoticons/default/huh.gif' class='bbc_emoticon' alt='???' />',
'panel 4'=>'<img src='http://www.yiiframework.com/forum/public/style_emoticons/default/huh.gif' class='bbc_emoticon' alt='???' />',
'panel 5'=>'content for panel 5',
// panel 6 should be non-expandable
'panel 6'=>'<img src='http://www.yiiframework.com/forum/public/style_emoticons/default/huh.gif' class='bbc_emoticon' alt='???' />',
),
// additional javascript options for the accordion plugin
'options'=>array(
'animated'=>'bounceslide',
),
));
I tried various things, but somehow if I turn off content printing, it shifts, and the whole menu becomes a disaster
Any ideas about how to tweak the menu so that it can have non-expandable items?
Perhaps some changes in .js files are necessary?