Quick question, I searched for a long time, and couldn't find the answer.
I am using my drupal site to facilitate a package "check in/check out" function. When a package arrives at the office, I create a "Package In" node. When the package is picked up, I create a "package out" node that uses a Node Reference to reference the package in.
I am trying to come up with a View that shows all the "Package In" nodes that are not yet node referenced via the "Package Out." Basically, I need to show all the packages that have not been picked up.
Is it a filter? An argument? Am I just stupid for setting it up this way? Thank you in advance!
Comments
Comment #1
merlinofchaos commentedI think you may need the nodereferrer module in order to get the reverse reference. Add the reference relationship to the view. Then add the "node: nid" filter, set it to use the relationship, and set the operator to "Is empty (NULL)". That should give you every node that is not referenced.
Comment #3
nodecode commented@merlinofchaos: Thank you! I've been using this method for a while now and works wonderfully. I do, however, have a further question on this that i believe belongs in its own thread.
thanks again, this is great.
Comment #4
luksakhi
is it not possible to accomplish this using the nodereference module?
i need this quite badly.
thanks
lukas