I have a simple content type created and have created several custom views from the views module for this content type. One of my views is a block that displays an image from my node's imagefield (my view will accept the nid as an argument to select the proper data).
Context is working to display my custom blocks (views) in my sidebar when displaying a node of my content type, but I was wondering if there is a way to inform my view-block of which node is being displayed so it can show the right data.
I know I could just create a custom template for my content type, but I would rather not do that.
Is there a solution to this?
thanks,
Comments
Comment #1
jide commentedThis is a classic. In your view, add an argument for node nid, choose "Provide default argument" in "Action to take if argument not present", then "Node ID from URL". This will pass the current node nid as an argument to the view.
Comment #2
jide commentedBy the way, this is more a Views issue than a Context one.
Comment #3
yhahn commentedWhat @jide said : )