joachimruhs / myttaddressmap

Google maps for tt_address
MIT License
0 stars 2 forks source link

Pins not "loaded" on translated Page (404 for domain.de/en/index.php?eIDx=myttaddressmap&id=2208) #2

Closed bh-teufels closed 4 years ago

bh-teufels commented 4 years ago

Hello on my Translated "Map"-Page the pins ans search not working i get error POST https://mydomain.de/en/index.php?eIDx=myttaddressmap&id=2208 404 maybe same as issue #1 ?

Using MyTTAddressMap (Map) Plugin

joachimruhs commented 4 years ago

Hi, try to use a leading "/" in template AjaxSearch.html var ajaxRequestUrl = "/index.php?eIDx=myttaddressmap&id

Did this help?

bh-teufels commented 4 years ago

Thank you i will Texte this tomorrow

Holen Sie sich Outlook für iOShttps://aka.ms/o0ukef


Von: joachimruhs notifications@github.com Gesendet: Thursday, July 30, 2020 6:56:29 PM An: joachimruhs/myttaddressmap myttaddressmap@noreply.github.com Cc: Bastian Holzem b.holzem@teufels.com; Author author@noreply.github.com Betreff: Re: [joachimruhs/myttaddressmap] Pins not "loaded" on translated Page (404 for domain.de/en/index.php?eIDx=myttaddressmap&id=2208) (#2)

Hi, try to use a leading "/" in template AjaxSearch.html var ajaxRequestUrl = "/index.php?eIDx=myttaddressmap&id

Did this help?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/joachimruhs/myttaddressmap/issues/2#issuecomment-666523592, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AJCV6CAJ3RKY2NDG4FZC77TR6GQ33ANCNFSM4PN6L2BQ.

joachimruhs commented 4 years ago

See here: https://www.web-services-ruhs.de/en/myttaddress-en works like expected!

bh-teufels commented 4 years ago

using leading "/" in template AjaxSearch.html var ajaxRequestUrl = "/index.php?eIDx=myttaddressmap&id fixed the problem thank you very much.

But the Labels from template AjaxLocationList.html are not translated all are integrated in translation files <f:translate key="LLL:EXT:hive_thm_custom/Resources/Private/Language/translation.myttadressmap.xlf:myttaddressmap.phone" />

joachimruhs commented 4 years ago

Hi, good. I have published a new release which has a better handling of own icons... when used with localization.

Ok, closing the issue...

bh-teufels commented 4 years ago

okay thank you,. when will it come to TER? the Version there is still 1.0.8

i'm not sure if this fix the problem but i could find the reason:

in the AjaxSearch.html template the Language has to be add to the ajaxRequestUrl var ajaxRequestUrl = "/index.php?eIDx=myttaddressmap&id=" + id + "&L=" + languageUID

therefore the languageUID has to assigned to the template

bh-teufels commented 4 years ago

i am now on Version 1.1.0 but the translation nor working using AjaxSearch.html and AjaxLocationList.html

if i put for example the languageUID "hard" into the ajaxRequestURL var ajaxRequestUrl = "/index.php?eIDx=myttaddressmap&id=" + id + "&L=1" i get the translation (for Language Uid 1)