jDiction Forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

jDiction 2.2.0 released. http://jdiction.org/downloads

Author Topic: JDiction and Xmap  (Read 35725 times)

Xtream

  • Newbie
  • *
  • Posts: 13
    • View Profile
JDiction and Xmap
« 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?
Logged

Harald Leithner

  • Administrator
  • Hero Member
  • *****
  • Posts: 1688
    • View Profile
Re: JDiction and Xmap
« Reply #1 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.
Logged
Joomla! 5.0 Release Manager
Vote at JED

Finarfin

  • Full Member
  • ***
  • Posts: 119
    • View Profile
Re: JDiction and Xmap
« Reply #2 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.
Logged

TetrisSmalls

  • Newbie
  • *
  • Posts: 2
    • View Profile
Re: JDiction and Xmap
« Reply #3 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
Logged

Harald Leithner

  • Administrator
  • Hero Member
  • *****
  • Posts: 1688
    • View Profile
Re: JDiction and Xmap
« Reply #4 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.
Logged
Joomla! 5.0 Release Manager
Vote at JED

TetrisSmalls

  • Newbie
  • *
  • Posts: 2
    • View Profile
Re: JDiction and Xmap
« Reply #5 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. :)
Logged

Harald Leithner

  • Administrator
  • Hero Member
  • *****
  • Posts: 1688
    • View Profile
Re: JDiction and Xmap
« Reply #6 on: March 04, 2014, 05:50:49 pm »

I already contacted him ;-) but good if you have done it too ;-)
Logged
Joomla! 5.0 Release Manager
Vote at JED

hkk

  • Newbie
  • *
  • Posts: 19
    • View Profile
Re: JDiction and Xmap
« Reply #7 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?

« Last Edit: June 27, 2015, 10:13:32 am by hkk »
Logged