1. tmigot
  2. Commercial Templates
  3. Thursday, 10 January 2013
  4.  Subscribe via email
HI,

i have spent hours and hours searching on the net and validating all my settings between the menu modules and the menus themselves but my conclusion is there is something wrong with the template.

I have bought Clarity to build my new multilingual site. I have english and french. I have created 3 menu modules (all, en fr) which are positioned in Hornav and 3 menus (all, en, fr).
I am on joomla 2.5 and use the native language switcher ( but some happens with Falang.
When the page opens in english the main menu appears just fine. When switching to french the french main menu does not appear.

The reason why i know it is an issue caused by the template is that if i choose another position for the french menu (i.e showcase) then the menu appears.

All the pages are there (although just duplicate of english for now).
You can test the phenomenon here: removed

I could really appreciate your help here. I would hate having to duplicate my template as well.

Cheers,
Tom
Accepted Answer Pending Moderation
0
Votes
Undo
Hi Tom

May I suggest sending temporary administration access to your Joomla installation to info@joomla51.com so we can examine this issue further.

Ciarán
  1. more than a month ago
  2. Commercial Templates
  3. # 1
Accepted Answer Pending Moderation
0
Votes
Undo
Hi Tom

Thank you for allowing us access.

Could I ask you to remove the following from your templates variables.php (../templates/j51_clarity/php/variables.php) and see if it would amend the issue..

//Hornav Menu
$renderer = $document->loadRenderer( 'module' );
$module = JModuleHelper::getModule( 'mod_menu', "hornav_menu" );
$menu_name = $this->params->get("hornav_menu", "mainmenu");
$module->params = "menutype=$menu_name\nshowAllChildren=1\ntag_id=moomenu";
$hornav = $renderer->render( $module);
$hornav_font_color = $this->params->get('hornav_font_color');
$hornav_ddbackground_color = $this->params->get('hornav_ddbackground_color');

And also the following..
//Footer Menu
$renderer = $document->loadRenderer( 'module' );
$module = JModuleHelper::getModule( 'mod_menu', "footer_menu" );
$menu_name = $this->params->get("footer_menu", "mainmenu");
$module->params = "menutype=$menu_name\nendLevel=1";
$footermenu = $renderer->render( $module);
$footermenu_onoff = $this->params->get('footermenu_onoff');

If you could let us know if this works for you as if so it would indicate an issue with the template which we would have to address.

Ciarán
  1. more than a month ago
  2. Commercial Templates
  3. # 2
Accepted Answer Pending Moderation
0
Votes
Undo
Ciaran,

i have just applied your suggested solution but it results in having none of the menus (neither english, nor french nor all) appear. Basically it makes it worse.
I leave it for the next hours so you can see for yourself. attached is the variable.php as it is now.

I am wondering once the modifications are applied am i supposed to do something else with the main template code?
  1. more than a month ago
  2. Commercial Templates
  3. # 3
Accepted Answer Pending Moderation
0
Votes
Undo
Thank you Tom for trying it. Admittedly it was a bit of a shot in the dark. Would it be possible to send me FTP access to the template folder of your Joomla installation?

Ciarán
  1. more than a month ago
  2. Commercial Templates
  3. # 4
Accepted Answer Pending Moderation
0
Votes
Undo
HI,, would like to thank Ciaran for his commitment to solve my problem. He has been very helpful and sorted my issues.
  1. more than a month ago
  2. Commercial Templates
  3. # 5
Accepted Answer Pending Moderation
0
Votes
Undo
Glad to hear everything is now working well for you. Any further queries please feel free to contact us.

Ciarán
  1. more than a month ago
  2. Commercial Templates
  3. # 6
Accepted Answer Pending Moderation
0
Votes
Undo
I wonder if you could share the solution to the issue. I am having the same problem when setting up a multilingual site with a joomla51 template.
  1. more than a month ago
  2. Commercial Templates
  3. # 7
Accepted Answer Pending Moderation
0
Votes
Undo
Hi Niclas

In your Template Manager. Click on styles. You will see all the styles currently in your joomla installation. Select your default template style example - J51_Clarity style and duplicate it for each language you want.

Example one style for English and another style for German. In each of the styles then select the default language you want for that style. Now select the menu in the style for that particular language.

Ciarán
  1. more than a month ago
  2. Commercial Templates
  3. # 8
Accepted Answer Pending Moderation
0
Votes
Undo
Hello Ciaran.

I understand, but it will be quite hard to maintain a site with, say 4 active templates.

I made a small fix myself:

first I gave each menu its languagecode as menutype. English got en-gb as menutype and so on...

then this little fix in variables.php

//add varible for language
$language = $document->get("language";);

//this line not needed
//$menu_name = $this->params->get("hornav_menu", "mainmenu";);

//new line
$menu_name = $language;


This works, and I just need one template.
  1. more than a month ago
  2. Commercial Templates
  3. # 9
Accepted Answer Pending Moderation
0
Votes
Undo
Very nice Niclas.. a perfect solution I hadn't thought of :)

Thank you for posting!

Ciarán
  1. more than a month ago
  2. Commercial Templates
  3. # 10
Accepted Answer Pending Moderation
0
Votes
Undo
hello,
i've same problem with multilanguage website (it should be a 4 languages website).
i've 2 separate menu modules for italian and english each with proper language, only the italian menu is displaied. i've try to put the fix in variables.php with past and copy but then the homepage become blank..
what i've do wrong?
thx a lot
  1. more than a month ago
  2. Commercial Templates
  3. # 11
Accepted Answer Pending Moderation
0
Votes
Undo
Hi Sebastian

Have you tried creating a separate template style for each of your languages?

Ciarán
  1. more than a month ago
  2. Commercial Templates
  3. # 12
Accepted Answer Pending Moderation
0
Votes
Undo
yes it work :)
i wanted to try niclas fix but no succes :)
  1. more than a month ago
  2. Commercial Templates
  3. # 13
  • Page :
  • 1


There are no replies made for this post yet.
Be one of the first to reply to this post!

Join Our Newsletter

* indicates required
We respect your privacy and do not tolerate spam and will never sell, rent, lease or give away your information (name, email, number, etc.) to any third party. Nor will we send you unsolicited email.
Joomla51 - Mullaghmore, Co. Sligo, Ireland
Joomla51.com is not affiliated with or endorsed by the Joomla! Project or Open Source Matters.
The Joomla! name and logo is used under a limited license granted by
Open Source Matters
the trademark holder in the United States and other countries.

We use cookies on our website. Some of them are essential for the operation of the site, while others help us to improve this site and the user experience (tracking cookies). You can decide for yourself whether you want to allow cookies or not. Please note that if you reject them, you may not be able to use all the functionalities of the site.

Ok