: RTL and LTR pages : rottenberg July 05, 2009, 06:23:43 AM Hi,
I've chosen magnum opus template for a multi lingual site because it has 2 style : one with the column on the left side and one with the column on the right side If the language used is LTR (english, french,...) I want to use the style 1. If the language used is RTL (arabic, hebrew...) I want to user the style 2. How can I choose the style following the language ? Am I right if I want to clone the template and get a style 1 template and a style 2 template ? I know that in joomfish I may use a pseudo template which choose the template to be used following the active language. If it's the solution how can I clone the template ? If t's not the solution how can I get the style following the active language ? a collateral question : I know that I can get the 'main' menu LTR or RTL as it's a specific javascript. I thought about using 2 'main' menu one for the LTR languages with a specific order of button and one for the RTL languages with the reverse order for the menu. How can I activate the good 'main' menu following the langage thank you for help best regards Michel : Re: RTL and LTR pages : mikek July 06, 2009, 06:52:54 AM Hello, I am sorry I am not familiar enough with joomfish to know how their pseudo template works. If you need RTL you would need to code the entire template to work this way, it works off of css, not a language.
: Re: RTL and LTR pages : rottenberg July 06, 2009, 08:48:57 AM Joomafish provides a 'pseudo template' to redirect to the good one following the langage used.
I think the with magnus opus template, I don't need to recode the template. I want to use the style 1 (column on left side) with LTR language and style 2 (column on right side) with RTL language. I think to do that I need to clone the Magnum Opus template to get 1 template with style 1 and another with style 2. How can I clone a template ? thank you for help Michel : Re: RTL and LTR pages : mikek July 06, 2009, 09:45:52 AM Hello, you would have to copy the templates folder "magnumopus" and call the copy "magnumopus2". Then you'll have to edit the files:
index.php and templatedetails.xml and do a find replace for magnumopus and replace it with magnumopus2 That will give you a copy of the template, however like I said above RTL and LTR is controlled by CSS, not a language. So you will need to adjust the CSS in the second copy. : Re: RTL and LTR pages : rottenberg July 06, 2009, 11:46:45 AM thank you
For the moment I've changed index.php and templatedetails.xml name to magnumopus2 It's working thanks Michel |