hi there
how can i change the menu position on the left hand to the right?
hi there
how can i change the menu position on the left hand to the right?
What menu are you talking about? If its the default menu that houses the different operations you can do when generating a crud setup using gii, you can make changes by modifying the column2 layout file (views/layouts/column2.php)
thanks for reply
exactly true, i want to change the operations menu, but what changes i have to do in the columns2 file?
html changes? Or css maybe. Isn’t that menu by default already on the right side of the page?
i dont know, but i think i have to change the css’s attr to do it.
to tell the truth, it’s not important that its in right side or the left, i want to know how to change its position…
by the way, how can i change the breadcrumbs direction?
by default its like : home>>project>>update
but i want to change it like :
[color="#FF0000"][rtl]update<<project<<home[/rtl][/color]
thank you for the sake of pursuing
Breadcrumbs are generated from an array that is passed from the view file (when using gii generated code). You could change the order to make it appear in reverse, but then you would probably run into an issue with the home link still appearing to the left. I guess what you could do is create a new class that extends from CBreadcrumbs and modify the run method to reverse the items/links array before it is outputted.
yeah, very helpful, the best solution must be that to extends from CBreadCrumbs and override…
but i cant find the a way to change to operations menu position
i tried to modify some css attributes but nothing changed!
it is in a div tag by the slider class
to changing slider parents also didnt have expected affect
another things to do for breadcrumbs display is:
change css/main.css, line 138 form:
div.breadcrumbs
{
font-size: 0.9em;
padding: 5px 20px;
}
to :
div.breadcrumbs
{
direction: rtl;
font-size: 0.9em;
padding: 5px 20px;
}
and change "protected/views/layouts/main.php" line 40 from :
<?php if(isset($this->breadcrumbs)):?>
<?php $this->widget('zii.widgets.CBreadcrumbs', array(
'links'=>$this->breadcrumbs,
)); ?><!-- breadcrumbs -->
<?php endif?>
to :
<?php if(isset($this->breadcrumbs)):?>
<?php $this->widget('zii.widgets.CBreadcrumbs', array(
'links'=>$this->breadcrumbs,
'separator'=> ' « ',
)); ?><!-- breadcrumbs -->
<?php endif?>