I have a node type which contains an image. My CONTENT ZONE is configured to 12 columns with 3 regions.
CONTENT IMAGE (12 columns), SIDEBAR FIRST (3 columns), CONTENT (9 columns).

The node itself (content wise) is rendered inside the CONTENT region. What I need to be able to do though is read the node and extract the image attached to the node and render it inside the CONTENT IMAGE region and exclude it from the CONTENT region. Does this make sense?

I'm hoping this can be accomplished through some preprocess manipulation? Any suggestions?

Comments

Argus’s picture

You can use Views to make a block containing the images. Then use a contextual filter with the Content: Nid.

Next you display the block in a zone above the content zone (eg one of the regions in the Preface zone).

Woggers’s picture

UPDATE: Thanks Argus! This totally worked! Just changed the Provide Default value to the Contextual Filter to be the Content ID from URL.

This would solve my problem but for a Views Block I have no idea how to provide a "source" for the Content: Nid contextual filter?

Clicking on the Content:Nid contextual filter it tells me at the top that:
"The node ID.
This display does not have a source for contextual filters, so no contextual filter value will be available unless you select 'Provide default'."

As far as I know you can't provide variables to View Blocks unless this has changed now in D7 and Views 3?
Is there a way to tell the view to check what current node is being viewed?

Argus’s picture

Use "Content ID from URL" for the default value.

edit: Oops sorry you did that already. It should display the image for that particular NID. What else should it do?

Second edit: ah now I understand, You updated your post at the top. Cheers!

Argus’s picture

Status: Active » Closed (works as designed)