Newbie here, just trying to do my first clever thing in Drupal...

I'm using the Bio module, and have added an extra CCK text field to the Bio content type called 'Summary'. I've also created a new content type called Ticket.

When I create new Ticket nodes, I'd like to be able to select a user and have the 'Summary' field from their Bio included in the display.

I've added a user reference select list to the Ticket content type, which is a start, but not sure what I need to do next? I have a feeling I need to add some code to a tpl.php file so it displays the correct 'Summary' field, but not sure. Would I need to change node.tpl.php? It only needs to display in my Ticket nodes...

Any advice much appreciated - thanks!

Comments

Jason Dean’s picture

Ok I did some homework and clarified a couple of things:

Bio is just a normal content type, so essentially I'm just trying to combine fields from two content types into one node. I found some useful pointers for that here: http://drupal.org/node/177985, though I'm surprised that there isn't a module to help this?

Also, I'll need to create a node-ticket.tpl.php file to include this code.

BUT! I think I'm going to run into a problem with common fields between the two content types. In my 'ticket' content type, it's an easy user reference selector to get the user profile name. However, I'm not sure how the bio node is linked to the user profile - this could complicate things. Perhaps I should forget using Bio module and just create a standard profile text field for this 'Summary' field?

Jason

urbanx’s picture

did you ever figure this out?

i'm looking at doing something similar, but am running into a wall. i'm looking at creating a content type called something like "user of the week" and dumping a user's bio in there as part of the content, as well as a write up about why they were selected.

any thoughts from your journey would be helpful.

thanks,

d.