When trying to reference a node, only nodes that are available in the users current language are available to be referenced. I'm not sure if this is intended behaviour, but it has been confusing our content team somewhat!

eg.
When on /node/add/my_content_type, I can create a node in any language, not just the default. Similarly, when on /ie/node/add/my_content_type, I can create a node for any language, not just Irish - ie. I can choose the language of the node at the time I create the node.

However, when on /node/add/my_content_type, I am only able to reference nodes that are available on the default site language, and when on /ie/node/add/my_content_type, I may only reference nodes that are available on the Irish version of the site.

To summarize: I would like to be able to create a reference to ANY node on my site, not just nodes that are available on the current version of the site I happen to be on when creating my node.

Comments

yched’s picture

Status: Active » Closed (works as designed)

That's most probably because you have configured i18n to use a Content selection mode on admin/settings/language/i18n.

This affects all node listing queries, including the ones nodereference uses to get the list of referenceable nodes.
Not much we can do about it.

mrfelton’s picture

yes, I have configured i19n to use a content selection mode. It is set to show current language and laguage neutral. One thing worth noting though, is that the teleport module (http://drupal.org/project/teleport), which is doing something similar (ajax autocomplete on node title) is able to find all nodes, regardles of which version of the site I am on.

yched’s picture

That would be because teleport doesn't wrap its queries in db_rewrite_sql().

mrfelton’s picture

so, this is by design then and is here to stay?