Hey guys so I have user profile page where I want the users to be able to select content based on tabs. The issue is that I’m required to change the menu rendered by the layout CMenu widget & $this->menu for each tab. Does anyone have any good suggestions for this? The tabs at the moment render a partial view with unique content divs so I can update them with their respectful CMenu links. I’m using an extension of CMenu to have each link as an ajax link for said content divs (tested these and they do work).
<?php
$itemOptions = array('class'=>'ajax-tab');
$this->widget('bootstrap.widgets.TbTabs', array(
'type'=>'tabs',
'tabs'=>array(
array('label'=>'General',
'content'=>$this->renderPartial('_profile', array('user'=>$model, 'header'=>'general'), true),
'itemOptions'=>$itemOptions, 'active'=>true),
array('label'=>'Personal',
'content'=>$this->renderPartial('_profile', array('user'=>$model, 'header'=>'personal'), true),
'itemOptions'=>$itemOptions),
array('label'=>'Experience',
'content'=>$this->renderPartial('_profile', array('user'=>$model, 'header'=>'experience'), true),
'itemOptions'=>$itemOptions),
array('label'=>'Elligibility',
'content'=>$this->renderPartial('_profile', array('user'=>$model, 'header'=>'elligibility'), true),
'itemOptions'=>$itemOptions),
),
));
?>