You are not logged in.

jvh

Beginner

  • "jvh" started this thread

Posts: 14

Location: Mexico

  • Send private message

1

Monday, February 21st 2022, 4:00am

Dynamic layer url

Hello

I need to assign the url depending of the language selected by de user before and is the variable %$lang% and also from the type of device


<layer name="help_guide" onhover="" style="skin_glow" url="(calc(lang == 'eng' ? %FIRSTXML%/folder1/help-tag-desktop-eng.png : %FIRSTXML%/folder1/help-tag-desktop-esp.png))" align="center" scale="1" parent="help" />

<layer name="help_guide" onhover="" style="skin_glow" url="calc(lang == 'eng' ? %FIRSTXML%/folder1/help-tag-mobile-eng.png : %FIRSTXML%/folder1/help-tag-mobile-esp.png)" align="center" scale="1" parent="help" device="mobile" />
if i set directly the url loads the image but when i set the calc doesnt work


Any idea how to solve this problem

thank you

regards
*smile*

2

Tuesday, February 22nd 2022, 6:59pm

Hi,

try using:

Source code

1
url="calc: ..."


https://krpano.com/docu/actions/#calc

Best regards,
Klaus