jDiction Forum
English => Extensions and jDiction => Topic started 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?
-
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.
-
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.
-
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
-
would you please change com_xmap/displayer.php in function getMenuTitle the line
. "LIMIT 1"
to
. " LIMIT 1"
atm I have no other workaround.
-
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. :)
-
I already contacted him ;-) but good if you have done it too ;-)
-
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:
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?