Yii Sidebar Operations on View Page Only

Dear Yii users,

I would like to display an additional custom sidebar menu apart from the default “Operations” sidebar currently shown. Let’s call it “Administration”.

On top of that, I would like to limit it to a view page of a user only.

I have edited and added my code in …\layouts\column2.php but as you know, it is displaying on multiple pages.

Thank you, much appreciated in advanced. :D

Example code:


<?php

		$this->beginWidget('zii.widgets.CPortlet', array(

			'title'=>'Administration',

		));

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

			'items'=>$this->menu,

			'htmlOptions'=>array('class'=>'operations'),

		'items'=>array(

            array('label'=>'Logout ('.Yii::app()->user->name.')', 'url'=>array('/site/logout'), 'visible'=>!Yii::app()->user->isGuest)

        ),

		));

		$this->endWidget();

	?>

Found a solution.

I was using User/Rights module and managed to locate the View file in modules folder.

Thank you. :D