Currently i've some nodes linked via node reference.
Node 'group' can be referenced to users, users can act in different groups.
Node 'story' can be read by users of the groups (node reference) and they check via a checkbox that it has been read.
Now I have multiple stories read be none, some, or all of the groups.
I've built a view with exposed filter on the groups. Getting story's read by the group works fine, although I want to have all stories not read by a group.
How can I manage to do this? Or is this more a question for views?

Comments

cees.vanegmond’s picture

Category: support » bug

Meanwhile I found a way to manage this. Somebody pointed me that above issue doesn't exist in D6.
The thing is the views filter handler. D6 (6.x-2.8) uses the 'views_handler_filter_many_to_one' and D7 (7.x-2.x-dev) uses 'views_handler_filter_in_operator'. I manually changed this on line 1010 of node_reference.module and it worked out.

Can anyone tell me why this has been changed between D6 / D7?
Also I changed the Category to 'bug report', from my point of view.

yched’s picture

Status: Active » Postponed (maintainer needs more info)

I don't think I understand the issue - possibly language barrier, and References + Views setups can be a bit complex to explain. Could you carefully describe your setup (node types, references between what and what...) and the intended behavior ?

cees.vanegmond’s picture

Well in basic I have two content types, X and Y.
In type X, the Y type can be referenced (Check boxes/radio buttons, unlimited values).
In a view users should filter where a certain type Y is not referenced in the X types.

Using the standard D7 'views_handler_filter_in_operator' in node_reference.module I have the following options to filter:
Is one of
Is not one of
Is empty (NULL)
Is not empty (NOT NULL)

The 'views_handler_filter_many_to_one' supplies the following options:
Is one of
Is all of
Is none of
Is empty (NULL)
Is not empty (NOT NULL)

The Is none of option is what I require.

Hope everything is clear.