Hi,

I'm using nodereference with a view to have a better control of content I want to reference.

The problem is that, sometimes, there are no results that match the possible references.

I provided an empty text with my view, but this text is not displayed in the node reference form, I think it would be better to add it when no content can be referenced.

It would be a great UI improvement to have a custom text that could explain why others content cannot be referenced instead of a buggy empty nodereference field.

Regards,

zmove

Comments

vthirteen’s picture

subscribe

3dloco’s picture

+1

nodecode’s picture

Subscribing. I'm coming from this related issue: http://drupal.org/node/726836

boogsbobo’s picture

subscribing

nodecode’s picture

has there been any movement on this? i'm not sure how complicated this would be but it would be a welcome UI change.

Exploratus’s picture

Subscribe. I agree. People dont know what to do when there is no referenced content.

technikh’s picture

has anyone found solution to this?

smokris’s picture

Status: Active » Closed (works as designed)

I think this issue may indicate a misunderstanding of how Node References affect the underlying Views behavior.

If you have a View that's selecting certain Nodes, and those Nodes exist, then the empty text isn't used. It doesn't matter which Fields you have selected, or whether those Fields have any content.

If you'd like to make a View that displays selected Nodes' referenced Nodes if they exist, and empty text if the selected Nodes don't have any referenced Nodes, use Views Relationships instead of Views Fields. Set up a Relationship for the Node Reference Field, and make the Relationship required. Then add a Field using the Node Reference Views Relationship. (Tested and working on cck-6.x-2.9.)