MODX 2.8.4 How to use lexicon in template from tv?

Hello,

how is it possible to use tv value for key translation?

This

[[%[[*ad_price-base]]? &namespache=`adresource` &topic=`default`]]

doesnt run.

At the moment I have no idea how I could do that.

Thank you in advance for a tipp.

bye
Chris

Looks like a typo in &namespace

oh, my mistake.

but it doesnt run.

Hmm, your syntax is correct so then I would suggest checking if the key is correct. What are you actually getting returned from that?

thank you so much.
I’m sorry. It was my mistake.

I’ve indeed used the wrong namespace.
so it runs:

[[%[[*ad_price-base]]? &namespace=adsresource &topic=default]]

thank you so much :pray:

1 Like