Hi everybody, I'm still rather heavily a newbie in Drupal, so I'd like to ask to some CCK/Views expert if there is a way to do this:
I have created a custom content type called people to store info about people, like First Name, Second Name and so on.
Well first of all as I need to sort both by first name and second name, I needed two text fields and I used the Title of my custom content type (as I can not disable this requested field) for the second name, and then added a second text field for the first name.
So my first question:
1) Is there another solution to have First Name and Second Name as two CCK text fields, and avoiding to have a title for the node?
The second and BIGGER problem is that I have to create a second custom content type called event to store events, that must have people as fields (relator, guest, speaker, and so on). So I have to reference the people content type.
But for the input of these referencing fields, I want a dropdown list, showing a list of couples of "Name - Second Name", coming from the people content type.
I tryed using a node reference field advanced settings to select a view, and in this view I made a query on the people content type, selecting the two field I am interested in.
This way the dropdown list I want, does show up correctly, BUT when submitting the event, in the created event node there are not the name and second name I need, but just the node title I referenced with a link to itself. :-(
So:
2) How can I reference a node and have some fields of this node to be put in the field of the node I am creating?
I hope I've been clear in exposing my problem and sorry for being long.
Thank you!
GP
Comments
Use Auto Node Title
I can only help with your first question - use http://drupal.org/project/auto_nodetitle to hide the title field, and then the title can be generated from any of the other cck fields.
Charles
www.parkroad.co.za
Charles
Drupal development, Cape Town, South Africa
Thank you! it works! :) GP
Thank you! it works! :)
GP
reviving a pretty old
reviving a pretty old post..
what about second question?
any way to do it?