Posting in the Magento forums has been disabled pending the implementation of a new and improved forum solution which should better serve the community.

For new questions please post at magento.stackexchange.com, the community-run support site for the Magento community. We will be providing updates on the new forum solution soon. For questions or concerns please email community@magento.com.

Magento Forum

RTL top nav menu
 
Hadifarnoud
Sr. Member
 
Total Posts:  210
Joined:  2007-10-07
Guildford, Surrey, UK
 

i can’t fin out how to make it RTL (i edited menu.css but sub menu position is wrong and i can’t make it correct)
can someone make it right align ( and showing submenu on right position )
this is my edited menu.css

/**
 * Magento
 *
 * NOTICE OF LICENSE
 *
 * This source file is subject to the Open Software License (OSL 3.0)
 * that is bundled with this package in the file LICENSE.txt.
 * It is also available through the world-wide-web at this URL:
 * http://opensource.org/licenses/osl-3.0.php
 * If you did not receive a copy of the license and are unable to
 * obtain it through the world-wide-web, please send an email
 * to license@magentocommerce.com so we can send you a copy immediately.
 *
 * @copyright  Copyright (c) 2004-2007 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
 * @license    http://opensource.org/licenses/osl-3.0.php  Open Software License (OSL 3.0)
 */

#nav {
    padding:0 1px;
    
font-size:1.1em;
    
floatleft;
    
positionrelative;
    
background-imageurl(../images/nav_divider.gif);
    
background-repeatno-repeat;
    
background-positionleft bottom;
}
#nav li a {
    
color#0D998B;
    
background-imageurl(../images/nav_divider.gif);
    
background-repeatno-repeat;
    
background-positionright bottom;
    
line-height:1.3em;
    
display:block;
    
text-decoration:none;
    
float:left;
    
font-weight:bold;
}
#nav a span {
    
displayblock;
    
padding6px 12px 13px 10px;
    
margin0 1px 0 0;
    
width100%;
    
height100%;
    
cursor:pointer;
}
#nav li > a:hover span {
    
color#333333;
    
background-imageurl(../images/nav_link_bg.gif);
    
background-repeatno-repeat;
    
background-positioncenter bottom;
}
#nav li ul a, #nav li ul a span, #nav li ul a:hover, #nav li ul a:hover span {
    
backgroundnone;
}
#nav li {
    
list-style:none;
    
floatleft;
    
displayblock;
}
#nav li.parent ul, #nav li.active ul {
    /*put the subnavs below and hide them all*/
    
displaynone;
    
positionabsolute;
    
top28px;
    
padding-top3px;
    
left0;
    
width950px;
}
#nav li.active a {
}
#nav li.active ul a, #nav li.parent ul a {
    
floatleft;
    
/*ie doesn't inherit the float*/
    
border0;
    
color#02C1B1;
    
widthauto;
    
margin-right5px;
}
#nav li.active ul a:hover, #nav li.parent ul a:hover, #nav li ul a:hover span {
    
color#E0F90C !important;
}
#nav li.active ul {
    /*display active subnav list*/
    
displayblock;
}
#nav li.parent:hover ul {
    /*  display the other topics when
    their parent is hovered */
    
displayblock;
    
z-index6000;
}

#nav li ul li ul {
    
displaynone !important;
    
top32px !important;
}

#nav li ul li:hover ul {
    
displayblock !important;
    
background-color#333333;
    
color#E0F90C !important;
    
height30px !important;
    
overflowhidden;
    
padding0px !important;
}

/* Fix for the IE bug */

#nav iframe {
    
positionabsolute;
    
left: -1px;
    
top0;
    
z-index: -1;
filterprogid:DXImageTransform.Microsoft.Alpha(style=0opacity=0);
}
 
Magento Community Magento Community
Magento Community
Magento Community
 
Hadifarnoud
Sr. Member
 
Total Posts:  210
Joined:  2007-10-07
Guildford, Surrey, UK
 

i think RTL support is essential,so we need RTL and international calendar support, i can help you on jalali calendar integration
thanks

Image Attachments
css-menu.jpg
 
Magento Community Magento Community
Magento Community
Magento Community
 
Hadifarnoud
Sr. Member
 
Total Posts:  210
Joined:  2007-10-07
Guildford, Surrey, UK
 

i managed this issiue:

/**
 * Magento
 *
 * NOTICE OF LICENSE
 *
 * This source file is subject to the Open Software License (OSL 3.0)
 * that is bundled with this package in the file LICENSE.txt.
 * It is also available through the world-wide-web at this URL:
 * http://opensource.org/licenses/osl-3.0.php
 * If you did not receive a copy of the license and are unable to
 * obtain it through the world-wide-web, please send an email
 * to license@magentocommerce.com so we can send you a copy immediately.
 *
 * @copyright  Copyright (c) 2004-2007 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
 * @license    http://opensource.org/licenses/osl-3.0.php  Open Software License (OSL 3.0)
 */

#nav { padding:0 20px; font-size:1.1em; z-index:999; float:right;}


/************** ALL LEVELS  *************/ /* Style consistent throughout all nav levels */
#nav li {
    list-style:none;
    
position:relative;
    
text-align:right;
    
    
}
#nav li.over { z-index:99; }
#nav li.active { z-index:999; } /* to prevent the li separator from showing through on mouseover on li */
#nav a { line-height:1.3em; }
#nav a, #nav a:hover { display:block; text-decoration:none; }
#nav span { display:block; cursor:pointer;}


/************ 1ST LEVEL  ***************/
#nav li { float:left; }
#nav li.active { color:#d96708; }
#nav a { float:left; padding:5px 12px 6px 8px; color:#ffffff; font-weight:bold; }
#nav li.over a, #nav a:hover { color:#ffffff;}


/************ 1ST LEVEL RESET ************/
#nav ul li, #nav ul li.active {
    
float:none;
    
height:auto;
    
background:none;
    
margin:0;
    
}
#nav ul a, #nav ul a:hover {
    
float:none;
    
padding:0;
    
background:none;
    
}
#nav ul li a { font-weight:normal !important; }


/************ 2ND LEVEL ************/
#nav ul {
    
positionabsolute;
    
width:15em;
    
top:25px;
    
left:-10000px;
    
border:1px solid #899ba5;
}

/* Show menu */
#nav li.over ul { left:-100pt; }
#nav li.over ul ul { left:-10000px; }
#nav li.over ul li.over ul { left:-100px; }

#nav ul li a { background:#ecf3f6; }
#nav ul li a:hover { background:#d5e4eb; }
#nav ul li a span { background:url(../images/nav_divider.gif) repeat-x 0 100%; }
#nav ul li a, #nav ul li a:hover { color:#2f2f2f !important; }
#nav ul span, #nav ul li.last li span { padding:3px 15px 4px 15px;}
#nav ul li.last span { background:none; }

/************ 3RD+ LEVEL ************/

#nav ul ul { top:5px; }
#nav ul ul ul { left:-10000px; }
#nav li.over ul li.over ul ul { left:-10000px; }
#nav li.over ul li.over ul li.over ul { left:100px; }


/* Fix for the IE bug */

#nav iframe {
positionabsolute;
left: -1px;
top0;
z-index: -1;
filterprogid:DXImageTransform.Microsoft.Alpha(style=0,opacity=0);
}
 
#tabsJ {
      
float:left;
      
width:100%;
      
padding:0px;
      
font-size:10pt;
      
line-height:normal;
      
border-bottom:1px solid #24618E;
      
}
    
#tabsJ ul {
    
margin:0;
    
padding:1px 10px 0 50px;
    list-
style:none;
      
}
    
#tabsJ li {
      
display:inline;
      
margin:0;
      
padding:0;
      
}
    
#tabsJ a {
      
float:left;
      
background:url("../images/tableftJ.gif"no-repeat left top;
      
margin:0;
      
padding:0 0 0 5px;
      
text-decoration:none;
      
}
    
#tabsJ a span {
      
float:left;
      
display:block;
      
background:url("../images/tabrightJ.gif"no-repeat right top;
      
padding:5px 15px 4px 6px;
      
color:#24618E;
      
}
    
/* Commented Backslash Hack hides rule from IE5-Mac \*/
    #tabsJ a span {float:none;}
    /* End IE5-Mac hack */
    #tabsJ a:hover span {
      
color:#FFF;
      
}
    
#tabsJ a:hover {
      
background-position:0% -42px;
      
}
    
#tabsJ a:hover span {
      
background-position:100% -42px;
      
}

let me help you on RTL css and add it to next release , i changed magento-0.6.12840 css for RTL support and i don’ know which css file changed in recent relase,i’ll add rtl support to magento-0.6.12840 (css and templates) and will give it to you.
sorry for my bad english

 
Magento Community Magento Community
Magento Community
Magento Community
 
Hadifarnoud
Sr. Member
 
Total Posts:  210
Joined:  2007-10-07
Guildford, Surrey, UK
 

i saw some docs here : http://framework.zend.com/wiki/display/ZFPROP/Zend_Calendar+-+Thomas+Weidner
seems Zend supports persian calendar, isn’t it? how can i use that?

in use cases ( http://framework.zend.com/wiki/display/ZFPROP/Zend_Calendar+-+Thomas+Weidner#Zend_Calendar-ThomasWeidner-usecases ) i saw arabic calendar example:

$cal Zend_Calendar(Zend_Calendar::ARABIC); // Without input the actual date is used 
    
$cal->setDate('1385 Dey 05'); 
    print 
$cal->toGregorian();

>> setDate(’1385 Dey 05’); this is persian calendar! dey is one of persiam month name, we write it like دی in persian.

 
Magento Community Magento Community
Magento Community
Magento Community
 
itay
Jr. Member
 
Avatar
Total Posts:  30
Joined:  2008-04-20
Israel
 

Hi Hadi,

did you managed to fit RTL for Magento 1.0.19870?

If u did, please share with us or at least give us directions.

 
Magento Community Magento Community
Magento Community
Magento Community
 
Hadifarnoud
Sr. Member
 
Total Posts:  210
Joined:  2007-10-07
Guildford, Surrey, UK
 

not yet. I need a test server as I did so many modification

 
Magento Community Magento Community
Magento Community
Magento Community
 
itay
Jr. Member
 
Avatar
Total Posts:  30
Joined:  2008-04-20
Israel
 

ok thanks

 
Magento Community Magento Community
Magento Community
Magento Community
 
shadi
Jr. Member
 
Total Posts:  3
Joined:  2008-08-12
 

hi , did you find a way to make rtl change when changing store view?

i’m thinking of adding a if condition on the hedear that checks what store view is being used

also were you able to understand where the url encode rewrite is to add and change the way it handles non english charecters?
thanks
shadi

 
Magento Community Magento Community
Magento Community
Magento Community
 
Hadifarnoud
Sr. Member
 
Total Posts:  210
Joined:  2007-10-07
Guildford, Surrey, UK
 

Shadi of course you can do this , just look at catalog templates in design folder.

You can’t change the way url converts, It’s something to do with your browser. Just use English in SEO url

 
Magento Community Magento Community
Magento Community
Magento Community
 
Hadifarnoud
Sr. Member
 
Total Posts:  210
Joined:  2007-10-07
Guildford, Surrey, UK
 

now we can have full RTL on latest Magento version (even enterprise version)
please call +44 7879545915 or email

 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
Back to top