Developer forum

Forum » Templates » Include tag changing with language

Include tag changing with language


Reply
Hi,
I would need to have dynamic Include tag in which loaded file changes
in function of current language area.

For example for french version it loads:
<!--@Include(ProductSideInfo-fr-FR.html)-->

for other version it loads
<!--@Include(ProductSideInfo-xx-XX.html)-->

does anyone know the way to achieve this goal?

Thank you



Replies

 
Reply
Hi Piotr

It's only possible with XSLT.
I've attached an example.

In the XSLT you can have as many xsl:when sections as you like. In your case one pr. language.
 
Reply
Thank you,
So as I understand first the XSLT file will be transformed into html and then processed as template for the module so the Include tags will be interpreted?
 
Reply
Correct ;)

 

You must be logged in to post in the forum