How can i edit the ( Home ) link ,
Posted:
27 May 2015, 01:34
by mhmdup
Dear
How can i edit the ( Home ) link , it did not done from the admin Translations , where can i locate it
Regards
Re: How can i edit the ( Home ) link ,
Posted:
27 May 2015, 09:24
by Xpycm
Hello.
You can do the following:
In the themes\classic\views\layouts\inner.php file
instead of:
- Code: Select all
$this->widget('zii.widgets.CBreadcrumbs', array(
'homeLink' => CHtml::link(Yii::t('zii','Home'),Yii::app()->homeUrl, array('class' => 'path')),
'links'=>$this->breadcrumbs,
'separator' => ' / ',
'activeLinkTemplate' => '<a class="path" href="{url}">{label}</a>',
'inactiveLinkTemplate' => '<a href="javascript: void(0);">{label}</a>',
));
write:
- Code: Select all
$this->widget('zii.widgets.CBreadcrumbs', array(
'homeLink' => CHtml::link('My title', Yii::app()->homeUrl, array('class' => 'path')),
'links'=>$this->breadcrumbs,
'separator' => ' / ',
'activeLinkTemplate' => '<a class="path" href="{url}">{label}</a>',
'inactiveLinkTemplate' => '<a href="javascript: void(0);">{label}</a>',
));
More:
https://www.google.com/search?q=yii+CBreadcrumbs
Re: How can i edit the ( Home ) link ,
Posted:
27 May 2015, 19:23
by mhmdup
Dear
It done
Thank you very much , i found this code :
$this->widget('zii.widgets.CBreadcrumbs', array(
'links'=>$this->breadcrumbs,
'separator' => ' → ',
));
And i replace it with your code :
$this->widget('zii.widgets.CBreadcrumbs', array(
'homeLink' => CHtml::link('My title', Yii::app()->homeUrl, array('class' => 'path')),
'links'=>$this->breadcrumbs,
'separator' => ' / ',
'activeLinkTemplate' => '<a class="path" href="{url}">{label}</a>',
'inactiveLinkTemplate' => '<a href="javascript: void(0);">{label}</a>',
));