Score:1

Views: how show a link to the translated entity?

br flag

I'm on D9. I've a View of moderated content nodes, so of Content revisions elements.

Those nodes are also translatable: the default language is it and the eventual translation is en.

The views formatter is a table which shows both original nodes and their eventual translations.

I need to show for the elements of default language it:

  • a link to the translated language version if it exists - which could be not published yet, but just in "validation"
  • or a link to the "add translation" form in case the translation doesn't exist yet

Is possible to do this in some way, with just configuration\modules?

Otherwise how should I proceed to realize it? Should I create a custom Views field or is there a better solution?

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.