Hi
Does CMenu childrens work by default?
I have this code in main.php
<?php $this->widget('zii.widgets.CMenu',array(
'items'=>array(
array('label'=>'Home', 'url'=>array('/site/index')),
array('label'=>'Game archive', 'url'=>array('/game/index')),
array('label'=>'Most popular', 'url'=>array('/game/index', 'Game_sort'=>'rating.desc')),
array('label'=>'Genres', 'url'=>array('/game/genre', 'genre'=>'Puzzle'), 'items'=> array(
array(
'label'=>'Adventure',
'url'=>array('/game/genre', 'genre'=>'Adventure')
),
array(
'label'=>'Action',
'url'=>array('/game/genre', 'genre'=>'Action')
),
)),
array('label'=>'Suggest game', 'url'=>array('/game/create')),
array('label'=>'Contact', 'url'=>array('/site/contact')),
array('label'=>'Login', 'url'=>array('/site/login'), 'visible'=>Yii::app()->user->isGuest),
array('label'=>'Logout ('.Yii::app()->user->name.')', 'url'=>array('/site/logout'), 'visible'=>!Yii::app()->user->isGuest)
),
)); ?>
And it gives me this menu:
For menu items after the children, I actually have to hover them for them to show (see Suggest game)
So, is this supposed to work by default or will I have to modify css?