New Podcast

Posted Tuesday, January 31 at 3:28 pm
  Thomas Turnbull (tom_o_t on drupal.org) and Alan Palazzolo (zzolo on drupal.org) join Mike Anello to talk about their new book from O’Reilly Media, Mapping with Drupal. Mike’s usual co-hosts, Andrew and Ryan, were both unable to participate in the podcast, leaving Thomas and Alan subject to Mike’s long-winded (but extremely interesting by some accounts) questions.
Download Podcast 73
DrupalEasy_ep73_20120131.mp3
Syndicate content

NEWSLETTER

Stay informed on our latest news!

Syndicate content

Testimonial

On March 11th I attended the first DrupalEasy Workshop in Orlando, Florida. I'm an experienced web developer who has recently picked up Drupal as a tool for helping to build high quality content-driven websites. Mike and Ryan were excellent teachers - they gave a thorough overview of a complex topic in a short space of time, and provided plenty of resources for us to continue learning. The workshop is essential for anyone who has previously configured a basic Drupal site and wishes to take their skills to an advanced level. I would not hesitate to recommend DrupalEasy.com training and hope to attend more workshops in the future.

Who are we?

DrupalEasy is the collective expertise of Ryan Price and Michael Anello, who joined forces to provide training and consulting services worldwide. Read all about them and what they can do.

What is Drupal?

Drupal is a free, super-powerful content management system for sites that require information posting and collection, including blogs, forums, videos, photos, and databases of information. We think it is the best platform available. Here's why...

Why Drupal?

More and more savvy organizations are going with Drupal for content management, and its no mystery why. It’s free, flexible, and easy to maintain for small or large volume sites. Learn more...

Adding photos to an event page with Views Attach

There are often 17 ways to do any particular action with Drupal - here is #18 on the list of "How do I display related content on this node's page?" You'll be using the Views Attach module and a nodereference field.

In this example, you want to relate a photo to an event. Inside the photo's content type, create a nodereference field that is able to reference the event content type. When a user is adding a new photo, she will be able to choose the related event if applicable.

The goal now is to have related photos appear somewhere on the event page. You can always use blocks, but Views Attach allows you to place the view amongst your CCK fields with the same drag-and-drop you would use to move the Title or Body field around.

To create the view, go read our article about nodereference or our other article about nodereference.

Once the view accepts the event's node ID as an argument and properly displays the related photos, you need to create a new Display in your view of the type "Node content". This is a special Display type provided by Views attach for placing inside of nodes. There will be an option to choose which node types the view should be attached to - in this case, you should choose your event type.

That's it! End Quicktip. If you'd like a more visual example, you should certainly watch eaton's Photo Gallery video on Lullabot.com

Trackback URL for this post:

http://drupaleasy.com/trackback/212
No votes yet

More Quicktips


2 comments

Guest wrote 2 years 14 weeks ago

ZqWxwZRYHM

The point I make is not that Githongo does not deserve our admiration, respect and applause. ,

Guest wrote 2 years 16 weeks ago

JdQqcwMqjQVyKUr

N810 internet tablet still only features WiFi and Bluetooth. ,

Syndicate content