Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
If you create a node in french with a entity reference field (with autoload) and then you translate this new node into another language of your choice the language value into the url don't change.
So if you use the entity reference field, he will found nodes in relationship with the url language ans not with your new content language.
Comment | File | Size | Author |
---|---|---|---|
#4 | Selection_028.png | 21.75 KB | Babou |
Comments
Comment #1
Echofive CreditAttribution: Echofive commentedAll fields "reference" type using the mode selection "simple" (in each field settings).
Another method is proposed ("Views" mode).
To use this mode, we need to create a view for each fields using "reference" type.
It's a little bit long and not yet tested... but for the moment this is the only way that we have...
We need to test...
Comment #2
bart.hanssens CreditAttribution: bart.hanssens commentedComment #3
bart.hanssens CreditAttribution: bart.hanssens commentedadded tag
Comment #4
Babou CreditAttribution: Babou commentedI have implemented the solution proposed above.
There are two new view's displays, each content type with a reference to download or address will be using those displays to fill the autocomplete list.
It's not possible to send a language as a parameter to this view other than the one in the URL. Which means that it's not possible to filter on the language and therefore that we show every nodes matching your search.
For instance if you are looking for a download, we will list all the downloads in all the languages available on the site (the language of the referenced download is displayed on the list, see the screenshot attached)
You will have to run a
drush cc all
and then adrush fra -y
for the changes to take effect.Comment #5
Babou CreditAttribution: Babou commentedPlease update the status.We are close to the final release so we need to know whether there are still some work to do here or not.
Thanks.