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

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.

eZ debug

Timing: Jan 18 2025 02:48:26
Script start
Timing: Jan 18 2025 02:48:26
Module start 'layout'
Timing: Jan 18 2025 02:48:26
Module start 'content'
Timing: Jan 18 2025 02:48:27
Module end 'content'
Timing: Jan 18 2025 02:48:27
Script end

Main resources:

Total runtime0.6716 sec
Peak memory usage4,096.0000 KB
Database Queries54

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0058 588.0469152.6406
Module start 'layout' 0.00580.0036 740.687539.4766
Module start 'content' 0.00930.6608 780.1641530.5547
Module end 'content' 0.67020.0014 1,310.71888.2813
Script end 0.6716  1,319.0000 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00340.5092160.0002
Check MTime0.00140.2066160.0001
Mysql Total
Database connection0.00070.098410.0007
Mysqli_queries0.630993.9391540.0117
Looping result0.00040.0655520.0000
Template Total0.642795.720.3214
Template load0.00220.333320.0011
Template processing0.640595.368320.3202
Template load and register function0.00010.016110.0001
states
state_id_array0.00090.139410.0009
state_identifier_array0.00070.109020.0004
Override
Cache load0.00180.2707100.0002
Sytem overhead
Fetch class attribute can translate value0.00060.083520.0003
Fetch class attribute name0.00100.144340.0002
XML
Image XML parsing0.00130.200120.0007
class_abstraction
Instantiating content class attribute0.00000.001040.0000
General
dbfile0.00110.1623240.0000
String conversion0.00000.001540.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
2content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
2content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
1content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
2content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 9
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs