TS is confusing :)
I'm trying to create a typolink with a conditional parameter depending on the language.
10 = TEXT
10 {
typolink {
parameter = http://myLink.com
returnLast = url
if.isTrue.data = GP:L = 1
}
wrap (
<li class="mod-metanav--item">
<a class="mod-metanav--link" target="_blank" href="|">
The Link
</a>
</li>
)
}
As you can see, I tried to add an IF-statement to the typolink, asking for a language (at least, that's what I think I did).
The thing is, that, depending on the current language I want a different link (but the rest needs to remain the same).
I could use [globalVar = GP:L = 1]
but that would create a HUGE overhead, since this typolink is just a fraction of a bigger script-part.
I tried to google for variables or constants that I could add to the parameter, but nothing gave me a useful result...
HELP! :)