I have a content type with an unlimited image field.

Is it possible to display the total count of the images attached to the node?

Thanks.

Comments

R.Hendel’s picture

Status: Active » Fixed
Issue tags: +dvcs11

Hallo,
is your request still open?

It is for quite a long time undiscussed. So I will set it on fixed to clean the queue.
Please feel free to reopen it, if you have any further questions. Otherwise it would be closed automatically after two weeks.

Anonymous’s picture

Status: Fixed » Closed (fixed)

Yes, I eventually achieved this with some custom PHP and a manual count(); on the array.
Sorry for not posting.

woop_light’s picture

drupalsven, care to share your snippet?

woop_light’s picture

Found what I needed on another forum. I needed to add the ['und'] to get it working.

print '

' . count($node->field_photograph['und']) . '

';