I am trying to theme an ImageField which can have multiple images. The field is inside a view and I would like the view to only show the first image out of the multiple images inside the ImageField. Do you know how?

I tried using $field->content, but this only gives me a fully formatted string back which already includes all images.

Thanks for your help,
Dennis

Comments

mean0dspt’s picture

what exactly do you do?
are you using this patch http://drupal.org/node/220295 ?

davosian’s picture

The bigger picture of what I am trying to accomplish can be found over here:
http://drupal.org/node/355130

It looks like I cared people away with my lengthy post, because I have not received any replies on it.

I am not sure how your link relates to my problem. I am not using the Image module, but the ImageField for CCK module instead.
Thanks for your feedback, though.

mean0dspt’s picture

Read your post. If you are OK with CSS display:none to get this done, then may be you'll agree on stacking of images atop each other with absolute positioning.
Sorry, but that's all I can think of... I have little experience working with CKK. You might also try using Devel theming options to learn more about values and arrays involved