It looks like you're new here. If you want to get involved, click one of these buttons!
// sub item, example for juniors
$top_nav = array( 'adults'=>array('label'=>'adults', 'location'=>'adults' , ),
'juniors'=>array('label'=>'juniors', 'location'=>'juniors'),
'groups'=>array('label'=>'groups', 'location'=>'groups'),
);
$top_nav['juniors_school'] = array( 'label' => 'juniors school' , 'parent_id' => 'juniors' , 'location'=>'juniors_school') ;
$top_nav['juniors_courses'] = array( 'label' => 'juniors courses' , 'parent_id' => 'juniors' , 'location'=>'juniors_courses') ;
I would like now that 'juniors' items has the active class, and also the 'juniors_courses' , when i am on 'juniors_courses' page.
// -- works fine, my 'juniors item has the active class'
echo $this->fuel->navigation->render( $params=array(
'var' => 'top_nav',
'active'=>'juniors'
));
Comments
echo $this->fuel->navigation->render( $params=array( 'var' => 'top_nav', 'active'=>'juniors', 'cascade_selected' => TRUE, ));
Thx again for your help, have great day