jDiction Forum

English => Extensions and jDiction => Topic started by: Xtream on October 11, 2013, 02:21:03 pm

Title: JDiction and Xmap
Post by: Xtream on October 11, 2013, 02:21:03 pm
Hello
How to use Xmap with Jdiction?
Site have 3 languages, but sitemap is possible to generate only for default language...
If to try generate sitemap for another languages we will receive next error 5 - cannot calculate position of ('ru-RU','*') within ('ru-RU','*')LIMIT 1

Standart link for sitemap is ?option=com_xmap&view=xml&tmpl=component&id=1 and it will generate default language map.
If to use link ?option=com_xmap&view=xml&tmpl=component&id=1&lang=ru we will receive an error.

Maybe is another solution with sitemaps and Jdiction?
Title: Re: JDiction and Xmap
Post by: Harald Leithner on October 11, 2013, 03:08:13 pm
ok thats a problem, the xmap query doesn't get parsed correctly by jdiction...

maybe the orignal author of xmap could change the query to use JDatabaseQuery, then it should not be a problem for jdiction to translate the sitemap.

If he doesn't I will check back.
Title: Re: JDiction and Xmap
Post by: Finarfin on October 18, 2013, 11:18:13 am
I think I donĀ“t have that problem. I have a xmap webmap and a menu entry that points to that one (with jdiction translations). When I enter on the spanish side, show the spanish tree, and on the other, the other language.
Title: Re: JDiction and Xmap
Post by: TetrisSmalls on March 04, 2014, 05:08:10 pm
Was wondering if anyone was able to reproduce this error or come up with a solution?  I'm getting the following information when visiting the Site Map (XMAP) as the language is set to Spanish.

cannot calculate position of ('es-ES','*') within ('es-ES','*')LIMIT 1
Title: Re: JDiction and Xmap
Post by: Harald Leithner on March 04, 2014, 05:16:25 pm
would you please change com_xmap/displayer.php in function getMenuTitle the line

Code: [Select]
. "LIMIT 1"to
Code: [Select]
. " LIMIT 1"
atm I have no other workaround.
Title: Re: JDiction and Xmap
Post by: TetrisSmalls on March 04, 2014, 05:32:23 pm
I made the change as you suggested, and it worked out great for my instance.  I'm going to contact XMap's developer to see if there is a way to implement that change for future releases so my site(s) and others won't break after updating the component.

Thanks for the super quick response Harald. :)
Title: Re: JDiction and Xmap
Post by: Harald Leithner on March 04, 2014, 05:50:49 pm
I already contacted him ;-) but good if you have done it too ;-)
Title: Re: JDiction and Xmap
Post by: hkk on June 27, 2015, 09:50:46 am
Edit: Hi again.. i fixed it by updating my XMAP plugin for K2.. i leave my question for those who may have same problem!
----
Hi. I have same problem with 2 sites.
For the first this solution was successful - tx very much!
But for the second site/with K2/ - still has error when i try different language:
Code: [Select]
XML Parsing Error: mismatched tag. Expected: </meta>.
Location: http://MYSITE.com/en/component/xmap/xml?option=com_xmap&view=xml&id=1&filter_showtitle=1
Line Number 9, Column 4: </head>
---^

can u help me?