Hi,
I have a website Drupal 5 where an user can:
1) Create a node of type "Vehicle" (created with CCK)
2) Create a node of type "Track" (also created with CCK)
3) When the user creates a track he can link a vehicle to it, but the vehicle has to be his own, he cannot link just any vehicle.

Understanding how to do the third thing should be easy for someone more expert. To link the vehicle I have thought I can use the Reference Node field in the track node, but this will show just every vehicle, not only those by the same author who created the vehicle and who's creating the track. So I searched a module which could selectively hide certain voices, but I couldn't find any module doing just that.

I am ok editing PHP code, also if that means modifying/rewriting part of a module, but I can't write from scratch because I am quite new to Drupal.
I accept every kind of answer, even RTFM (which I have actually done, but I could have missed something, so please be specific in this case :) ).

Thank you.

Comments

WorldFallz’s picture

node reference fields are also able to use views-- you should be able to do this by creating the appropriate view and then using that view in the node reference field.

===
"Give a man a fish and you feed him for a day.
Teach a man to fish and you feed him for a lifetime."
-- Lao Tzu
"God helps those who help themselves." -- Benjamin Franklin
"Search is your best friend." -- Worldfallz