CMenu deliniator question

hi all,

I am trying to apply a menu delineators between menu links like |. Example

menu1 | menu2 | menu3 … etc. where ‘|’ is represented by an image!

With MainMenu widget I easily applied some additional code to be able to display delineators. I now wonder if this is possible with CMenu widget without extending the class and writing custom code. I think there should be a delineator property available as it is very commonly used within menus. If anybody has successfully managed to apply delineators between your menu links please share some know-how.



The way CMenu is designed you will in fact need to extend CMenu if you want to change the generated html. Start with this:

OK understood. Thanks

Actually one work around the issue is:

 <?php $this->widget('zii.widgets.CMenu',array(


                                    array('label'=>'Home', 'url'=>array('/site/index')),


                                    array('label'=>'About', 'url'=>array('/site/page', 'view'=>'about')),


                                    array('label'=>'Contact us', 'url'=>array('/site/contact')),contact')),                                  


                    )); ?>

This successfully applies a delineator | between the menus. This of course works when the CMenu widget is used with hardcoded items.