Wednesday, 03 September 2014 07:23
beggarly

XMap does not work on multilingual Joomla 2.5.x site

Report Xmap bugs on this forum.

XMap does not work on multilingual Joomla 2.5.x site

Postby websitebron.nl » Sat May 12, 2012 4:40 pm

I set up my multilingual (Dutch/English) site as described here: http://help.joomla.org/files/EN-GB_multilang_tutorial.pdf.
So I have a main menu for both languages, each with a home page.
Search Engine Friendly URL's are on
URL rewrite is on
Language filter is active, with all options on exept Alternative meta tags
Whatever I do, XMap genereates an XMAP for the menu items of the Default Site Language only!
So when I set the default lange to Dutch I get a Dutch XMap, when I set it to English I get an English sitemap, but never both.

Adding stuff to the XMap URL like &lang=en as described on this site, only results in errors.

I have seen similar posts on this blog, please check if this is a bug, thanks!

Eric
websitebron.nl
Fresh Boarder
Fresh Boarder
 
Posts: 6
Joined: Sun May 06, 2012 7:55 am

Re: XMap does not work on multilingual Joomla 2.5.x site

Postby websitebron.nl » Tue May 15, 2012 11:09 am

Hello, could I get a reaction please?
It's good when an HTML sitemap is filtered by the language filter, but for the XML sitemap (for Google) it should be possible to have all languages in the output!

Thanks in advance

Eric
websitebron.nl
Fresh Boarder
Fresh Boarder
 
Posts: 6
Joined: Sun May 06, 2012 7:55 am

Re: XMap does not work on multilingual Joomla 2.5.x site

Postby mauriestate » Thu May 24, 2012 2:28 pm

Hi, I would also like to second this topic, I am having the same problem with our community website developed in English and French. Xmap is a very good extension and the fact that it has also been done compatible with Joomla 2.5 is perfect. However, new Joomla 2.5 is done to work perfectly for multilingual websites by default and search engines also validate website contents by language as well, making this available in Xmap will also be perfect, please provide us necessary assistance for this issue.
mauriestate
Fresh Boarder
Fresh Boarder
 
Posts: 1
Joined: Thu May 24, 2012 2:25 pm

Re: XMap does not work on multilingual Joomla 2.5.x site

Postby websitebron.nl » Sat Jun 02, 2012 9:19 am

I think it should be possible to bypass the language filter, or set it to "all" for Xmap XML output.
Dear guilleva, could you please take a look at my site http://www.websitebron.nl or it's XML sitemap:
http://www.websitebron.nl/index.php?option=com_xmap&view=xml&tmpl=component&id=1
As you see all Englisch menu items are missing, although I selected the English menu too!
Thanks in advance!

Eric
websitebron.nl
Fresh Boarder
Fresh Boarder
 
Posts: 6
Joined: Sun May 06, 2012 7:55 am

Re: XMap does not work on multilingual Joomla 2.5.x site

Postby dirk » Tue Jun 05, 2012 3:58 pm

I have the same issue. Any solution available?
dirk
Fresh Boarder
Fresh Boarder
 
Posts: 3
Joined: Sat Dec 24, 2011 8:37 am

Re: XMap does not work on multilingual Joomla 2.5.x site

Postby siflaar » Sun Jul 08, 2012 9:40 am

Hello,
As far as I could see. The XML maps are created in ALL languages you have active in the selected menus.
BUT as long as you are not logged on with an administrator account at the frond end AND had not selected the correct language, you will not see the menu items in that language when checking the XML sitemap.
I agree with everybody that the XML sitemap should NEVER detect the language filter, Google is only checking the default site language items that way.

But I solved the problem via this link: http://joomla.vargas.co.cr/en/documentation/34-xmap-2/how-to/108-xmap-sitemap-as-sitemapxml

Greetings
Patrick Schouten
siflaar
Fresh Boarder
Fresh Boarder
 
Posts: 1
Joined: Sun Jul 08, 2012 9:33 am

Re: XMap does not work on multilingual Joomla 2.5.x site

Postby Yashik_san » Sat Sep 15, 2012 12:54 pm

Hi!

I want to bring this topic back as I experience the same problem with bilingual site.... After successful Xmap installation I have created 2 sitemaps - one for the Ukrainian language, another one for English. However only Ukrainian xml sitemap appears with some URLs after I click on it in sitemap manager, whereas English shows me 0 URLs.
I really need someones help to resolve this problem :(((((

Thanks,
Yana
Yashik_san
Fresh Boarder
Fresh Boarder
 
Posts: 2
Joined: Sat Sep 15, 2012 12:44 pm

Re: XMap does not work on multilingual Joomla 2.5.x site

Postby Yashik_san » Sat Sep 15, 2012 2:37 pm

Update
Even though I was not able to see URLs in one of my sitemaps I decided to go on, created a sitemap menu and two menu items, for each sitemap. On the front end they appear just fine in desired way and flow. Than I went to submit my sitemaps with Google Web Master. The first one (with Ukrainian URLs) went ok, another one gave me an error (Missing XML tag). What and where I should choose to make it work?

My SEO settings as follows: Search Engine Friendly URLs - Yes
Use URL rewriting - Yes
English is default language for the site

Also I did next changes as it is suggested for multilingual sites here in Documentation
# Ukrainian sitemap
RewriteCond %{REQUEST_URI} ^/sitemap-ua.xml
RewriteRule .* /ua/?option=com_xmap&view=xml&tmpl=component&id=2
# English sitemap
RewriteCond %{REQUEST_URI} ^/sitemap-ua.xml
RewriteRule .* /ua/?option=com_xmap&view=xml&tmpl=component&id=1 ( I know that /ua/ in front is weird, but this is what I copy-paste from XML sitemap for English version)
Yashik_san
Fresh Boarder
Fresh Boarder
 
Posts: 2
Joined: Sat Sep 15, 2012 12:44 pm

Re: XMap does not work on multilingual Joomla 2.5.x site

Postby websitebron.nl » Mon Sep 24, 2012 6:29 pm

Finally I found the solution for multilingual xmaps! Here is a howto:
1) create an xmap for each language, containing the only menus for that specific language.
2) you now have sitemap URL's like:
.../index.php?option=com_xmap&view=xml&tmpl=component&id=1 and
.../index.php?option=com_xmap&view=xml&tmpl=component&id=2 etc.
As discussed above they do not work, and show only the pages for the active language.
3) now the trick: select the language for each map by adding it:

.../index.php?option=com_xmap&view=xml&tmpl=component&id=1&lang=nl
.../index.php?option=com_xmap&view=xml&tmpl=component&id=2&lang=en

That's it, you can put those in your robots.txt and GooGle Webmaster tools!

Eric
http://www.websitebron.nl
websitebron.nl
Fresh Boarder
Fresh Boarder
 
Posts: 6
Joined: Sun May 06, 2012 7:55 am

Re: XMap does not work on multilingual Joomla 2.5.x site

Postby guilleva » Tue Sep 25, 2012 4:15 am

Hi All, thanks for your posts. I have been thinking about this and what would be the best way to solved and I don't think that forcing the XML sitemap to always include all the items on all the languages is the best solution. One of the reasons is that Joomla is always adding the lang=XX parameter to the urls, including the ones for the XML sitemap and adding links to other languages is confusing and all the people that already have two or more languages already configured for each language will be affected with the new versions.

So, I think that I will only provide a better documentation that makes it easier to create one sitemap for each language.

If adding lang=XX is causing errors for you, I would appreciate more details on your posts, unfortunately I don't have too much time to spend on Xmap right now and to be honest, when I see posts lacking of descriptive and helpful information I don't know where to start checking the problem.

This site is an example of a multilingual site using Joomla 2.5 and Xmap 2.2.1 and you can see the two different sitemaps at:
Code: Select all
http://joomla.vargas.co.cr/en/sitemap.xml
http://joomla.vargas.co.cr/es/sitemap.xml


Those URLs are possible because I added the following to my .htaccess:

Code: Select all
# English sitemap
RewriteCond %{REQUEST_URI} ^/en/sitemap.xml
RewriteRule .* /en/index.php?option=com_xmap&id=1&view=xml

# Spanish sitemap
RewriteCond %{REQUEST_URI} ^/es/sitemap.xml
RewriteRule .* /es/index.php?option=com_xmap&id=2&view=xml



As you can see, I'm using two different sitemaps, and specifying the the desired lang by param (lang=xx), but I think that it's not necessary to have two different sitemaps if your menus are not language specific.

On my case, the language of the page is defined by prefix /en/ or /es/ on the urls, but if that's not your case, you should use the lang=xx format.

Regards,

Guillermo
User avatar
guilleva
Administrator
Administrator
 
Posts: 1527
Joined: Wed Sep 12, 2007 3:10 am
Location: San José, Costa Rica

Next

Return to Bugs



Who is online

Users browsing this forum: Yahoo [Bot] and 2 guests