0

I am creating a multilingual site. I have views and when it was created, I added to the footer entity (node/22). Next, I created a translation of this content and now changed id (node/45). How to specify the settings views to display different node corresponding to the user's language?

enter image description here

enter image description here

1 Answer 1

0

With views php module you could add php in footer instead of entity. Sample untested code:

global $language; if ( $language-> language='en'){ $n=node_load(22); echo $n->title; //or any other field } else ...

A more elegant way is to use a view attachment and put another view in the footer

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.