The Joomla! Forum ™



Forum rules


Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting, this means YOU.
Forum Post Assistant - If you are serious about wanting help, you will use this tool to help you post.



Post new topic Reply to topic  [ 11 posts ] 
Author Message
PostPosted: Tue Apr 17, 2012 4:48 am 
Joomla! Fledgling
Joomla! Fledgling

Joined: Tue Apr 17, 2012 4:16 am
Posts: 4
Hello,

I've been reading through this forum looking for insights and solutions to my issue, with no luck. So, I ask kindly for your help.

I am building an English/Spanish website, with English being the default language. My issue is with the navigation to "Home" when the visitor is using the Spanish version of the site.

To go back to the home page of the site the user has 2 navigation options :

1) Through the Main Menu, clicking on "Home" ("Inicio" in the case of Spanish)
2) Via the "Breadcrumbs" clicking on "Home" ("Inicio" again for Spanish)

If the user is using the Spanish version of the site and navigates to "Inicio" via the "Main Menu", (s)he is redirected to the "Home" page of the default language ("English" in my case), BUT if the user navigates via "Breadcrumbs", (s)he rightly lands on the "Inicio" page for the Spanish language.

Why is this, and how can I resolve it? Thank you in advance.

Here goes my technical info:

Multilanguage site
Joomla 2.5.4
SEF URLs: Yes
Use URL rewriting: Yes
Remove URL Language Code : Yes

Regards.


Top
 Profile  
 
PostPosted: Tue Apr 17, 2012 6:13 am 
User avatar
Joomla! Master
Joomla! Master

Joined: Fri Aug 12, 2005 3:47 pm
Posts: 16630
Location: **Translation Matters**
I can't reproduce the issue here.
Can you post an URL to the site?

_________________
Jean-Marie Simonet / infograf · http://www.info-graf.fr
Multilanguage in 2.5: http://help.joomla.org/files/EN-GB_multilang_tutorial.pdf
---------------------------------
Joomla Translation Coordination Team • Joomla! Production Working Group


Top
 Profile  
 
PostPosted: Tue Apr 17, 2012 9:10 pm 
Joomla! Fledgling
Joomla! Fledgling

Joined: Tue Apr 17, 2012 4:16 am
Posts: 4
Please see http://estudio.cloudaccess.net

I'll send you privately the info to log in the back-end. Thank you in advance for looking into this.

Regards.


Top
 Profile  
 
PostPosted: Wed Apr 18, 2012 6:42 am 
User avatar
Joomla! Master
Joomla! Master

Joined: Fri Aug 12, 2005 3:47 pm
Posts: 16630
Location: **Translation Matters**
The error is due to the template you use based on the Gantry framework.

_________________
Jean-Marie Simonet / infograf · http://www.info-graf.fr
Multilanguage in 2.5: http://help.joomla.org/files/EN-GB_multilang_tutorial.pdf
---------------------------------
Joomla Translation Coordination Team • Joomla! Production Working Group


Top
 Profile  
 
PostPosted: Thu Apr 19, 2012 5:13 am 
Joomla! Fledgling
Joomla! Fledgling

Joined: Tue Apr 17, 2012 4:16 am
Posts: 4
Thank you for checking into this. I've been able to narrow down the source of my problems. The module "RokNavMenu" is the culprit. If instead of it I use the standard module from Joomla to display my menus, the navigation issue no longer exists. I'll then turn to RocketTheme, developers of RokNavMenu, to explore this further.

In the meantime, if anybody has ideas about how to get RokNavMenu to work properly in a multilingual Joomla 2.5 website, I'd like to hear them. FYI, I am using version 1.10 of this module, dated 22.03.12. Thank you in advance.

Regards.


Top
 Profile  
 
PostPosted: Thu Apr 19, 2012 7:50 am 
User avatar
Joomla! Master
Joomla! Master

Joined: Fri Aug 12, 2005 3:47 pm
Posts: 16630
Location: **Translation Matters**
The module does not take into account the possibility for home to NOT be equal to 1 but to en-GB, fr,FR, etc.

Try to comment the following lines around 140 to 144 in

ROOT/modules/mod_roknavmenu/lib/providers/RokMenuProviderJoomla16.php

i.e.

Code:
// Get the final URL
                       // if ($item->home == 1)
                       // { // Set Home Links to the Base
                       //     $node->setLink(JURI::base());
                      //  }

_________________
Jean-Marie Simonet / infograf · http://www.info-graf.fr
Multilanguage in 2.5: http://help.joomla.org/files/EN-GB_multilang_tutorial.pdf
---------------------------------
Joomla Translation Coordination Team • Joomla! Production Working Group


Top
 Profile  
 
PostPosted: Sat Apr 21, 2012 4:36 pm 
Joomla! Fledgling
Joomla! Fledgling

Joined: Tue Apr 17, 2012 4:16 am
Posts: 4
Thank you for checking further into this. I'll give it a try to your suggestion.

Regards.


Top
 Profile  
 
PostPosted: Wed Apr 25, 2012 5:47 pm 
Joomla! Apprentice
Joomla! Apprentice

Joined: Wed Apr 25, 2012 4:54 pm
Posts: 10
Tried commenting out the suggested lines, works for me :-)


Top
 Profile  
 
PostPosted: Wed Apr 25, 2012 7:42 pm 
Joomla! Apprentice
Joomla! Apprentice

Joined: Mon Sep 28, 2009 8:56 pm
Posts: 10
Hi to all,

On my site the solution suggested by infograf768 works fine, but if click on logo it returns at default language again.

how solve it?

Thanks

_________________
My Web Site: BlogOso.it


Top
 Profile  
 
PostPosted: Thu Apr 26, 2012 3:23 pm 
User avatar
Joomla! Master
Joomla! Master

Joined: Fri Aug 12, 2005 3:47 pm
Posts: 16630
Location: **Translation Matters**
here is a solution:

For cloudaccess template, edit the file
/templates/ca_cloudbase2_j25/features/logo.php

and change
Code:
<a href="<?php echo $gantry->baseUrl; ?>" id="rt-logo"></a>

to
Code:
<a href="<?php echo JRoute::_('index.php?Itemid='.JFactory::getApplication()->getMenu()->getDefault()->id); ?>" id="rt-logo"></a>


If using a pure Gantry template do the same change in
/libraries/gantry/features/logo.php

_________________
Jean-Marie Simonet / infograf · http://www.info-graf.fr
Multilanguage in 2.5: http://help.joomla.org/files/EN-GB_multilang_tutorial.pdf
---------------------------------
Joomla Translation Coordination Team • Joomla! Production Working Group


Top
 Profile  
 
PostPosted: Thu Apr 26, 2012 3:46 pm 
Joomla! Apprentice
Joomla! Apprentice

Joined: Mon Sep 28, 2009 8:56 pm
Posts: 10
infograf768 wrote:
here is a solution:

For cloudaccess template, edit the file
/templates/ca_cloudbase2_j25/features/logo.php

and change
Code:
<a href="<?php echo $gantry->baseUrl; ?>" id="rt-logo"></a>

to
Code:
<a href="<?php echo JRoute::_('index.php?Itemid='.JFactory::getApplication()->getMenu()->getDefault()->id); ?>" id="rt-logo"></a>


If using a pure Gantry template do the same change in
/libraries/gantry/features/logo.php


Yep, it works fine.
Infograf768 Thanks very much

JB

_________________
My Web Site: BlogOso.it


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 11 posts ] 



Who is online

Users browsing this forum: No registered users and 8 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
Powered by phpBB® Forum Software © phpBB Group