Hi,
Im stumped at the first hurdle, so not going too well so far!
How can I set a TbMenu item link to contain rel="external" so that I can use JS to open in a blank window?
Secondly, has anyone got a cute script that will also say “hey, you’re leaving this site… [ok][cancel]”
Personaly, this is annoying to most users, but it’s a legal requirement on this project.
p
Say theres an external link in there, to a new site, I want it to open in new window, and also tell the user its going to to do that before it does…
<?php $this->widget('bootstrap.widgets.TbNavbar', array(
'type'=>'inverse', // null or 'inverse'
'brand'=>'abc',
'brandUrl'=>'/index.php',
//'collapse'=>true, // requires bootstrap-responsive.css
'items'=>array(
array(
'class'=>'bootstrap.widgets.TbMenu',
'items'=>array(
array('label'=>'Home', 'url'=>array('/site/index'), 'active'=>true),
array('label'=>'abc', 'url'=>array('#'), 'items'=>array(
array('label'=>'def', 'items'=>array(
array('label'=>'Administration', 'icon'=>'icon-th-list', 'url'=>array('/leads/admin'), 'visible'=>Yii::app()->user->checkAccess('Manager') || Yii::app()->user->checkAccess('Operator')),
array('label'=>'Create', 'icon'=>'icon-pencil', 'url'=>array('/leads/create'), 'visible'=>Yii::app()->user->checkAccess('Manager') || Yii::app()->user->checkAccess('Operator')),
'---',
...