Language-conditional page block
I have a multilingual Una community website and a multilingual main website. On the main website, each language has its own RSS feed. I want to display an RSS block on Una sidebars, displaying the RSS feed in user selected language. In other words:
if UNA lang == EN : display /en/feed.xml ; else if UNA lang == FR : display /fr/feed.xml
How can I do that ?
-
-
·
LeonidS
- ·
Hello @Aurélien Pierre
Could you please specify how you insert that RSS content to be shown? But your task looks like made for the module creation with the bx_lang_name() function and using special RSS feed blocks.
-
·
LeonidS
-
Hi, so far I use the RSS block from the page builder, in skeletons section, but I don't mind writing PHP.
-
Sorry, but without PHP, you can't create the proper processing of the current language and proper and safe loading of the necessary XML file.
-
Ok something got lost in translation ^^. "I don't mind writing PHP" = I'm ok with writing PHP.