Node Image displayed in Block on that Page = Mini Panels???

Events happening in the community are now at Drupal community events on www.drupal.org.
sokrplare's picture

So I spent a few hours trying to figure this out - there has got to be a way and I'm just missing it - especially since Panels is uncharted territory for me!

On some pages I've got an image field that I want to appear in a block or panel in the header (above the "content" section where the rest of the page shows up). I thought a Mini Panel would be perfect because it would pick up the "context" and use that node's image field. I was wrong.

I ended up just creating a new content type and then a view that randomly selects one, but the client wants heading images specific to the page. There's got to be an easy way to do this!

Any suggestions?

Comments

Why not expose your view as a

speedracer79's picture

Why not expose your view as a block and use the node id as an argument to choose the correct image.

You're my Hero!

sokrplare's picture

Wow - it is incredible to me that after using Drupal for 4+ years I had never come across that. Now I only wish I'd posted the question 3 hrs ago!

Thanks, Wade!

(for anyone else reading, some similar implementation details are here: http://drupalsn.com/learn-drupal/drupal-questions/question-2650)

Central Iowa Drupal Users Group

Group categories

Category

Group notifications

This group offers an RSS feed. Or subscribe to these personalized, sitewide feeds: