Indico events from the feed - each node is in 1 language
Events (i.e. events not related to an Indico event, e.g. not organized by CERN but where we participate) - each node exists both in English and French
As I am translating my website I have a problem with my view since:
If I don’t filter by translation language (= interface language selected for the page), my “Events” appear twice, in French and English whatever the selected language is.
If I do filter by translation language, my Indico Events won’t appear in the French version.
First go to Content->Feeds and delete all the imported events from Indico.
Then go to Structure->Content type amd Edit the Indico Event content type.
Go to Language settings and select Default language -> Not specified or not applicable
Save and clear caches.
Go to Content->Feeds and import events from Indico.
Then go to your view and add the filter Content: Translation language and select the values Interface text language selected for page and Not specified or Not applicable depending on what you have selected before.
Now your view should display events properly whenever you switch to English or French without appearing twice.
@sboutas,there is one more little problem here.
When I click on a “French” Agenda Box, it redirects me to the “English” version of the Indico event node.
There is the same problem on home.cern.
This is normal because the Indico events don’t have a language set and their links follow the pattern of the English links.
It would be possible to fix this if the view had fields instead of using a display format but you wouldn’t get the nice layout of the Agenda box.
Another way to fix this is to create a second Indico feed and mark it as French by setting the language manually in the imported nodes but that means that you import the same event twice in the system creating additional nodes and I wouldn’t advise that.
Dear Sotirios,
Thank you very much for the change.
Will it also work on my collision display of events? I cannot know right now because we don’t have any future Indico event.
Cheers,
Marie
Dear @sboutas ,
The solution is not working anymore…
If I only select “Interface text language selected for page” and “Not specified”, my Indico Event won’t be displayed… It was working before, but not anymore… Should I re-delete and re-import my Indico Events?
Thanks for your help,
Marie
You had the Indico events imported as French language. I switched it to Non specified now, deleted the events and import them again.
The thing is that you don’t have any Event in English and French to test it but in theory it should work.
When you are in French your Events will be displayed in French and the all the Indico Events. When you are in English it should display your Events in English and all the Indico Events.