Categories
dynamic footer in RTF template

Hi, i have a requirement to change the footer based on a value found for each customer account, in particular i have to change the language of footer based on language of account.
in my template i call the footer with <?call@inlines:footer_content?> and in the footer i have
<?template: footer_content?>
<?xdofx:if LANGUAGE='US' then ENG_TEXT else TEXT end if?> <?PHONE?>, <?EMAIL?>
Internet: <?URL?>
<?end template?>
I tried to put it inside a for-each but the result is that in footer i have N footers changing for each customer, but what i want is 1 footer for one customer.
so i put that outside a for-each but what i get is one footer applied for every customer independenty of the language.
TEXT, ENG_TEXT and LANGUAGE are taken from same query group. What can i do to fix this?
Best Answer
-
If each page is being populated by a for loop, you can try for-each@section:whatever so it updates the footer for each iteration of the loop.
Rgds,
Kevin
1
Answers
-
Thanks,
this fixed my issue!1 -
Very helpful information.
Thank you very much @Kevin M-Oracle!
0 -
Hi Bhaskar,
You are welcome. Glad I could help.
Kevin
1