Is there a way I can display only one of the attached images in my node layout? I'm using a CCK image file field with up to 5 images.

I do see my imagecache presets... I don't see how to grab only one of these, or a particular item in the array? I could write some custom php and node_load() but this seems like a lousy way to format content.

Thanks for any help!

Comments

that0n3guy’s picture

You can use a view with nid argument. The view would show 1 or all of the images in the node (or use view_cycle module to rotate them). Add that view to your node-panel and pass the node argument to the view.

merlinofchaos’s picture

Status:Active» Fixed

#1 sounds like a good answer.

Status:Fixed» Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

lpalgarvio’s picture

Title:Displaying only one CCK image field for node» Choosing how many and which CCK image field to show in pane
Version:6.x-3.5» 6.x-3.x-dev
Category:support» feature
Status:Closed (fixed)» Active

turning into a feature request.

instead of adding Views overhead with a views content pane, how about adding code similar to what Views has for handling Field indexes?

so that we can say how many rows to fetch, and at which index to start retrieving them.

[=====] Group multiple values
If unchecked, each item in the field will create a new row, which may appear to cause duplicates. This setting is not compatible with click-sorting in table displays.
Show value(s) [=====] starting from [=====] (first item is 0) Reversed [=====] (start from last values)

better yet, for any kind of Field.