Hi,
beside switching between different language content via different folders (https://krpano.com/forum/wbb/inde…&threadID=17499) I need to open different URLs depending on the choosen language.
My idea is, to simply use a data: set to store the links. Is it possible to do this?
e.g.:
Code
...
</data>
<data name="url_infopoint-box5startlink-de">
https://.../produkte/beispiel.html
</data>
<data name="url_infopoint-box5startlink-en">
https://.../products/example.html
</data>
<data ...
<layer name="box5startlink" type="image" style="linkspotstyle" url="skin/linkspot.png" onclick="a_openlocalizedurl(box5startlink,get(v_lang));" />
<action name="a_openlocalizedurl">
openurl(data[url_infopoint-%1-%2].content)';
</action>
Alles anzeigen
I know the last part is not right, but I have missed the right way to transform the data.content into a variable or use it directly to open the url. I tried several things, but I'm a bit worried, that I'm on the wrong track completely.
Code
<action name="a_openlocalizedurl">
trace(data[url_infopoint-%1-%2].content);
<!-- set(urlloc,data[url_infopoint-%1-%2].content);-->
copy(urlloc, get(data[url_infopoint-%1-%2].content));
</action>
I very much would appreciate some hint, why this is not working.
Yours,
Michael