Closed (fixed)
Project:
Views (for Drupal 7)
Version:
5.x-1.6
Component:
block displays
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
22 Dec 2008 at 20:07 UTC
Updated:
27 Jan 2009 at 08:10 UTC
I have trouble conceptualizing what can be done with Views' arguments...this is what I want to do:
I have a CCK event-node-reference field on other node types (blogs, images, etc). What I want to do is have a block visible when you are displaying the event node that shows just nodes that reference that specific event.
Is this possible with views?
I started to create a block with Views but got stuck. I can choose the "Node Reference: Event Reference (field_event)" in the arguments section but I'm not sure if this is all it would take (it's not working) or what I need to enter for the other argument settings.
Comments
Comment #1
merlinofchaos commentedThis is conceptually very similar to a lot of views that show things related to the node being displayed. Look in the Views snippets section of the handbook; I think there are several in there. The important part will be the snippet of code that goes in the Argument PHP section. You'll use an argument for your nodereference instead of a normal nid argument, but otherwise things should be very similar.
Comment #2
mdowsett commentedYou mean here:
http://drupal.org/handbook/customization/php-snippets
I couldn't find anything....
Comment #3
merlinofchaos commentedIf 'PHP' is Views that's a lot more responsibility than I want.
http://letmegooglethatforyou.com/?q=views+snippets