Forums / Developer / To fetch articles that contain only images

"Please Note:
  • At the specific request of Ibexa we are changing this projects name to "Exponential" or "Exponential (CMS)" effective as of August, 11th 2025.
  • This project is not associated with the original eZ Publish software or its original developer, eZ Systems or Ibexa".

To fetch articles that contain only images

Author Message

Romeo Antony

Tuesday 22 June 2010 4:55:33 am

Can you please tell me how to fetch articles with image attribute only.
I do not want to fetch articles that do not have image attribute .
how do I do that when I use dynamic blocks

Andrew Duck

Tuesday 22 June 2010 5:23:26 am

I would suggest building an extended attribute filter. Filter the ezimage datatype on the is_valid attribute to determine if the attribute has image content or not.

Andrew Duck, Executive Director, Quiqcorp Limited
eZ Certified Developer and Trainer.
Member of the Community Project Board
http://quiqcorp.com | http://twitter.com/andrewduck