Node References

On this new episode of the Mustardseed video podcast, Bob talks about why a modular approach using Node References is the future of Drupal. He puts together CCK, Views, Node Reference URL, and Views Attach to give you an idea of how powerful this solution can be.

Mustardseed On Twitter | Mustardseed on Facebook

Not sure if my drupalness is at the point where I'll use this in the near future but I always appreciate the podcast to put some arrows in my drupal quivver.  Keep up the good work!

Could you do this within a single content type?  

For example, say I have a content type called Review to review products.  Most reviews are single parts (1 node) but occasionally may have multiple parts with each part being separate nodes created over a long period of time.  It would be useful to have all the parts of the review link together like the example in the podcast...  preferably in numerical order.

So Part 1 would have 'forward' links to Parts 2, 3, ..., and Part 2 would have a 'back' link to Part 1 and 'forward' links to Parts 3, 4, ...

Eric

@Eric
I've never tried to reference the same content type (just because I havne't had the need) but I don't see why not.  It should work just fine, afterall it's a "NODE reference" not "other content-type reference" ;)

With Drupal I'm forever finding modules I wish I already knew about. views_attach is a definite one I need to check out.

I will test it tonight, maybe, and see what happens...

Thanks,

Eric

 I did recently spent like two days to find out how all of this stuff worked, thanks to this video it makes a whole lot easier to understand. Thanks for that.

Hi Bob,

been playing around alot with node reference lately, but node reference url and views attach gave a whole new perspective to it ! 

Great that your back! Keep uo the excellent shows!

Christian

Welcome back, I've missed the podcast :) Playing around with node references too these days. Nifty stuff.

 Vow! Just what I need. Thank you man! I will try to use it on my next project which will need just that.

It was like every time... pretty good and short. I like it! 

Thanks for doing Podcasts again!

I Love your clear Podcasts. And after my Posting in our DUG Switzerland and Germany, you will got a lot of Facebook and Twitter followers

Hope, you do some more....

 

Thanks!  Great that you are making more podcasts.  It's much appreciated.  Just spent the last month going through all your other tutorials.

Hi Bob

I really enjoy your new Podcast, since in the past I allway refered to the video of Jeff Eaton (Lullabot), when anybody had a problem like this. I averytime had to convince the others, that this technique can be used even when they don't make a gallery. Now you created a new reference for me (sure not only for me).

I'm very happy you are back in town. Go ahead and create more of this good stuff.

 

Bob - great to have the podcasts back - going through withdrawl after loosing this and G&G

Question - where did you get that shirt - that is awesome!!

 yeah, thanks for posting another podcast.  We missed them soooo much. ;-)

thanks to pepe we spread the word

Great to have these back!

I always struggle with node refs and arguments.  This helps to get my head around it a bit.

Would love to see more OG implementations.   Also,  would love to see how you implement the recipe you've described at Drupal Con last year.  Would be majorly useful!

Welcome back guys! :-D

this rocks, my buddy (i've created page for him) will be very pleased with easy building node refs !!

 

I'm so glad to see your podcasts back.

This is a great technique that I had just begun to learn about, based on a video about "Views Galleries" at Lulabot.

http://www.lullabot.com/articles/photo-galleries-views-attach

 

Actually this looks great. If you combine this technique with the Node Access User reference module you might really kick things like Organic groups out of your mind. See discussion here: http://groups.drupal.org/node/51383

Used this technique to reference Testimonials to my Portfolio projects on my website.

Thanks for another great video Bob!  I definitely hope everyone chips in and we can keep this rolling.  I don't know if you would want to dedicate a whole video on this but i would love to see how you lay out your node.add.tpl.  It always looks unique and cool.  Just a thought.  Thanks again.

Hi Bob, i've used this to manage references between nodes of the same type - it's great, but i wonder if there is any 'nice' way to reorder nodes that are attached under 'main' node... maybe node weight or something like that ?

@palik check out the node queue module and combine that with views...then you have drag and drop ordering!

I'm building a job listing page on my website and while researching solutions I came across this post, great!

i've created a custom content that is displayed in a view, thejob board, and every node has it's own reference field. I want to create a unique webform to apply to the jobs with a reference field that would auto populate from the node the user has selected telling me to which job the user is applying.

Any idea how to solve this?

I've found this example on the web that shows pretty much what I'm trying to do, but this isn't free and it's for a web based recruiting software.

http://drupal.catsbeta.com/cats_jobsite/


Since I've done the job board and the webform, I only need to know how to cross references between both, so I think that software it's quite an expensive solution.

Hope to hear back from you, feel free to answer to my email if you prefer.

best wishes

Hi!

Great podcast!  Very nicely organized, easy to follow, and good use of embedding video windows & zooming in on important demos =)

QUICK QUESTION!  I was on the Drupal IRC channel with a question regarding Views & Node references and they linked me to this podcast! 

Here's my question and I'm hoping someone can help me since i've been racking my brain for hours now!

Given this podcast's example, how would I create a view on the STORY node "Tigers in the Winter" that will display all OTHER STORY nodes that references the SAME PAGE node "All About Tigers"?

Thanks for the help! =)

Oh, Bob, you are like God.

You saved me from 3-day  suffering i was trying to do something like that with panels, views and arguments between them.

 THANK YOU VERY MUCH!!! :)

 Awesome to have you back, Bob.

 

I've been mucking around with this, but can't seem to get views_attach to display when contemplate is on for that content type? is this  known issue, and any solutions?

 

Thanks again for the great videos!

 

Paul

Hi,

Nice to see the podcasts up and running again. 

The node reference is a great tool and the example you showed is easy to implement.  I am stuck however, when creating my own custom node.tpl file (I have a 'products' content type which will display related products), which I use to display different node fields formatted nicely.

It looks like the only way I can get my hands on the view content is through <?php print $content; ?>, where content is already formatted html.  Am I missing something?

Frank

 

Frank, to get your hands on views_attach content, you have to go deeper....it's buried WAAAY down inside the $content variable (do a print_r and you'll find it there).  This is a feature request I'd like to see, though:  adding the views_attach content to the actual $node variable in the same way as CCK fields.

Bob,

Thanks a ton. This was very helpful. Worked beautifully until I started applying a content template (using Contemplate module).

Anyone else had this problem? Work around or fix? 

Thanks for doing this vidcast, I've enjoyed watching your stuff for quite some time now.

I was able to use this feature to reference/attach what is essentially an image gallery to an article, however it would be cool to be able to control where the views_attach "Node Content" places its, um, content.  I have yet to figure that one out.  Sometimes it might be nice to place them in a block on the sidebar, or perhaps beneath the main content and just above the footer (or author information if that is in place).

I'm wondering if perhaps Display Suite might prove useful here?

Great tutorial - thanks.

I'm looking for an alternative to Organic Groups and this seems just the thing

This is exactly what I needed and more.  Thank you!

Hey Bob,
great to see you're back making new podcasts, this one was really helpful - gotta catch up on the other two.  If you're still looking for ideas for podcasts, something on five star would be great.  I'm trying to create a content type with cck and the fivestar module which would allow users to rate a node on 5 different criteria (i.e., 5 different five star cck fields within that content type).  However, as I understand it, you can't embed multiple fivestar cck fields on a page (you can only embed one).  Instead, you have to use node reference and have a seperate rating content type...  anyways, i thought it was kidna related to this.

Pete

ps. i like the new site layout and the use of video advertisements - i don't mind waiting for them if it helps keep the podcasts coming.

 i am so happy to see y'all back!