Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
The attached are the modifications needed for the CSS, and an image to support RTL languages.
In D6 this file will be used automatically, in D5 it requires a patch, or support from the theme.
Comment | File | Size | Author |
---|---|---|---|
#14 | admin_menu-DRUPAL-6--1.rtl-ie.patch | 643 bytes | sun |
#11 | idolphin.jpg | 48.89 KB | druvision |
#10 | admin_menu-DRUPAL-6--1.rtl_.patch | 1.26 KB | sun |
#9 | admin_menu-rtl.css_.txt | 768 bytes | yhager |
#9 | arrow-rtl.png | 273 bytes | yhager |
Comments
Comment #1
sunThis patch alters the default stylesheet. Isn't there a clean CSS way to conditionally support RTL in Drupal 5?
Comment #2
yhager CreditAttribution: yhager commentedPlease note this patch creates a new file called admin_menu-rtl.css.
There is no standard way to support RTL languages in D5, so I chose the approach that is also supported for D6 - it includes the "-rtl.css" file right after the standard one, so the original CSS is untouched.
For more information on D6, see http://drupal.org/node/222782.
This patch can be used in the future D6 version of this module, or in D5 with a little bit of hackery. If you feel this is not good enough for committing, then leave this issue open and commit it when D6 version of this module is ready.
Comment #3
sunThanks for the clarification. To get this into admin_menu for D5, we need a way to conditionally enable/load this stylesheet. Otherwise, it has to wait until a D6 port for admin_menu is ready.
Comment #4
yhager CreditAttribution: yhager commentedTo get this into admin_menu for D5, we need a way to conditionally enable/load this stylesheet.
This is done at the theme layer. Existing solutions completely replace the original css with its rtl counterpart. If want to have this supported for D5 (for themes that implement this, like http://drupal.org/project/garlandrtl) use the attached as admin_menu-rtl.css (which is a copy of admin_menu.css with the RTL changes in the previous attachment). Don't forget the new PNG from the top of this issue.
Comment #5
druvision CreditAttribution: druvision commentedHere is a fuller file which worked for me.
Please commit the two files attached - admin_menu-rtl.css and arrow-rtl.css - into the 5.x version, even though they are beta quality - so people won't have to manually install it. This way we will get more feedback. Please put admin_menu-rtl.css in the main module's directory and arrow-rtl.png in the images directory.
No code changes are needed - the files are automatically used by RTL-aware themes.
Thanks in advance,
Amnon
-
Professional: Drupal Israel | Drupal Development & Consulting | Eco-Healing
Personal: Hitech Dolphin: Regain Simple Joy :)
Comment #6
druvision CreditAttribution: druvision commentedNot so fast....
In IE, it doesn't work as expected.
The secondary menus have a large left offser.
Comment #7
sunPlease test attached stylesheet.
Comment #8
yhager CreditAttribution: yhager commented#7 works correctly for FF3 and Konqueror 3.5.8.
With Opera 9.5 all menus are at the right edge of the screen (see screenshot attached of the "Site Configuration" menu)
Comment #9
yhager CreditAttribution: yhager commentedAfter a lot of help from tombigel, we managed to create the RTL version of this CSS, which was tested to work for IE, Opera and FF.
I am attaching admin_menu-rtl.css, and reattaching arrow-rtl.png - the previous one had an issue with IE.
The RTL'ed CSS now only lists the differences from the main CSS, as is usually done for Drupal 6.x.
There is no change to the original CSS, so this does not change any of the LTR behavior of this module. Therefore, no patch attached, only new files (which are used automatically by Drupal if exists).
Comment #10
sunThanks, tested, fixed a few styles, and committed!
Comment #11
druvision CreditAttribution: druvision commentedThanks for the fix - It works fantastically under Firefox, Safari and Google Chrome.
There is a need for a slight improvement for explorer 6+7 - all submenus are slided left. Submenus appear exactly one menu item to the left of the original menu item.
See attached image for demo.
Comment #12
yhager CreditAttribution: yhager commented@levavie: does you comment regarding IE shifted menus relate to the patch in #10 or in #9? Can you please check again with #9 and let us know if there is a difference (between #9 and #10)? I don't have access to IE myself..
Comment #13
yhager CreditAttribution: yhager commentedThanks to codeweavers for their lame duck presidential challenge, I got myself a working IE6 install.
I can confirm that the dev version behaves differently for IE6 - in IE6 the expanded menus are shifted to the left. The patch in #9 works correctly, so probably one of the adjustment made for #10 broke it.
Comment #14
sunPlease test whether attached patch fixes this. It's the only difference between #9 and #10, which should have an effect at all.
Comment #15
yhager CreditAttribution: yhager commentedThats it!
Thanks.
Comment #16
sunThanks for testing!
Comment #17
druvision CreditAttribution: druvision commentedIt's OK now
Thanks
Comment #18
Anonymous (not verified) CreditAttribution: Anonymous commentedAutomatically closed -- issue fixed for two weeks with no activity.