Early Bird Registration for DrupalCon Portland 2024 is open! Register by 23:59 PST on 31 March 2024, to get $100 off your ticket.
Hi,
Scenario:
- node1 of content type A in language de (default language en)
- I want to create a node2 of type B with a required node-reference to nodes of type A
- I select de as the language of node2 in the node creation form
Actual behavior:
The node_reference widget shows an empty list of nodes to select from. Since I'm not allowed to save the node (ie. change the nodes language) there is no way to create a node.
Expected behavior:
As soon as I select the language the node_reference widget should reload the available nodes this time by the selected language (+undefined language).
Proposed solution:
Explicitly filter the available nodes by language instead of relying on i18n_select to do that.
This would also at least partially fix http://drupal.org/node/1099956 .
Comment | File | Size | Author |
---|---|---|---|
#2 | 0001-display-nodes-from-all-languages.patch | 2.1 KB | torotil |
Comments
Comment #1
torotil CreditAttribution: torotil commentedThis is rather hard to implement as neither the option lists nor the views are designed to have access to the node or form object.
Comment #2
torotil CreditAttribution: torotil commentedIn the meanwhile I use this patch to solve my problem. It disables filtering by i18n_select and displays a language indicator behind the node title.
Comment #3
torotil CreditAttribution: torotil commented