I'm using cashmere for a 2 languages site and have set to select language with browser settings. If I input the website like http://www.mysite.com it works file and browser sets the language but if I select http://www.mysite.com/index.php it always selects english which is the default language.
Joomla is 3.3, just updated.
The main problem is that the logo redirects to index.php and always loads the english site.
Any help will be appreciated.
Thanks.
- alfoto2
-
- Commercial Templates
- Friday, 09 May 2014
- Subscribe via email
Hello
In your templates header.php (../templates/j51_cashmere/php/layouts/header.php - LINE66) locate the following...
And replace the index.php with your site URL (eg http://www.mysite.com/).
Ciarán
In your templates header.php (../templates/j51_cashmere/php/layouts/header.php - LINE66) locate the following...
<a href="/index.php" title="<?php echo $siteName; ?>
And replace the index.php with your site URL (eg http://www.mysite.com/).
Ciarán
- more than a month ago
- Commercial Templates
- # 1
May I suggest re sending temporary administration access to your Joomla installation to info@joomla51.com and we will examine these issues further. For our reference please paste a link to this post in your email.
Ciarán
Ciarán
- more than a month ago
- Commercial Templates
- # 3
Hello
Your home URL has been added to your header.php and it appears to be now working correctly.
Ciarán
Your home URL has been added to your header.php and it appears to be now working correctly.
Ciarán
- more than a month ago
- Commercial Templates
- # 5
Thanks, it opens now the main page but I still have the languages problem:
If I open the site from a spanish browser will all cookies deleted it opens in spanish as it should because I have set "Browser settings" at the language preferences in Joomla, but once I click at the logo it reopens in english and not spanish.
It doesn't matter if I browser other pages, each time I click at the logo the english site opens.
If I open the site from a spanish browser will all cookies deleted it opens in spanish as it should because I have set "Browser settings" at the language preferences in Joomla, but once I click at the logo it reopens in english and not spanish.
It doesn't matter if I browser other pages, each time I click at the logo the english site opens.
- more than a month ago
- Commercial Templates
- # 6
Btw, the same is true if I enter the full URL on a clean browser (spanish browser):
- If I go to http://www.mysite.com it starts in spanish (correct)
- If I go to http://www.mysite.com/web/index.php it starts in english
More info:
If I type once http://www.mysite.com on a clean browser it starts in spanish
the second time it starts in english
It seems like the cookies language is always set to english, may be it's a Joomla bug
- If I go to http://www.mysite.com it starts in spanish (correct)
- If I go to http://www.mysite.com/web/index.php it starts in english
More info:
If I type once http://www.mysite.com on a clean browser it starts in spanish
the second time it starts in english
It seems like the cookies language is always set to english, may be it's a Joomla bug
- more than a month ago
- Commercial Templates
- # 7
Ok, I have solved the logo problem by editing header.php to:
<?php $lang = JFactory::getLanguage(); $lang_code = substr($lang->getTag(),0,2); ?>
<div class="logo"> <span> <a href="http://www.mysite.com/web/index.php?lang=<?php echo $lang_code; ?>" title="<?php echo $siteName; ?>">
This way I'm forcing the logo to redirect to the correct language site, but still not solved the issue for entering twice http://www.mysite.url at the navigator, it always goes to the english site.
<?php $lang = JFactory::getLanguage(); $lang_code = substr($lang->getTag(),0,2); ?>
<div class="logo"> <span> <a href="http://www.mysite.com/web/index.php?lang=<?php echo $lang_code; ?>" title="<?php echo $siteName; ?>">
This way I'm forcing the logo to redirect to the correct language site, but still not solved the issue for entering twice http://www.mysite.url at the navigator, it always goes to the english site.
- more than a month ago
- Commercial Templates
- # 8
Hi Alfoto
Try adding the 'http://' at the beginning of your URL which will stop Joomla from apply SEF to it...
Ciarán
Try adding the 'http://' at the beginning of your URL which will stop Joomla from apply SEF to it...
<div class="logo"> <span> <a href="http://www.mysite.com/web/index.php?lang=<?php echo $lang_code; ?>" title="<?php echo $siteName; ?>">
Ciarán
- more than a month ago
- Commercial Templates
- # 9
- Page :
- 1
There are no replies made for this post yet.
Be one of the first to reply to this post!
Be one of the first to reply to this post!
Please login to post a reply
You will need to be logged in to be able to post a reply. Login using the form on the right or register an account if you are new here. Register Here »