How to fetch by binary file?

Author Message

asdsad asdsadsa

Friday 27 August 2004 5:29:30 am

I made a custom class(MyMediaClass) and there is some attributes inside it.
One of the attribute is Media with id:336

A want to fetch folder (in this folder there is only entrys with class "MyMediaClass") and get only the entrys wich content a video (video attribute is not required, so user can leave it blank). Actually i have no idea what to put instead of "????" symbols here:

{let test=fetch(content,
                list,
                hash(parent_node_id,440,
                     sort_by,array(published,false()), 
                     class_filter_type,include, 
                     class_filter_array,array('MyMediaClass'),
                     attribute_filter,array('and', array('336','=','?????'))
                    ) 
                )
}

10x in advance and sorry for my english.

Paul Borgermans

Friday 27 August 2004 5:40:30 am

You cannot filer on that in the attribuet filter, btu should check this in a loop of the returned objects.

{section show=$test.object.data_map.<mediafile identifier>.has_content}
{* display soemthing *}
{/section}

hth

-paul

eZ Publish, eZ Find, Solr expert consulting and training
http://twitter.com/paulborgermans

asdsad asdsadsa

Friday 27 August 2004 6:08:42 am

OK, 10x Paul. :-(

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 22:37:04
Script start
Timing: Jan 18 2025 22:37:04
Module start 'layout'
Timing: Jan 18 2025 22:37:04
Module start 'content'
Timing: Jan 18 2025 22:37:05
Module end 'content'
Timing: Jan 18 2025 22:37:05
Script end

Main resources:

Total runtime1.0011 sec
Peak memory usage4,096.0000 KB
Database Queries57

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0055 587.9141152.6250
Module start 'layout' 0.00550.0026 740.539139.4453
Module start 'content' 0.00810.9913 779.9844534.2422
Module end 'content' 0.99940.0017 1,314.22668.1641
Script end 1.0011  1,322.3906 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00320.3234160.0002
Check MTime0.00140.1377160.0001
Mysql Total
Database connection0.00100.101610.0010
Mysqli_queries0.956095.4870570.0168
Looping result0.00050.0515550.0000
Template Total0.967496.620.4837
Template load0.00190.190020.0010
Template processing0.965596.440520.4828
Template load and register function0.00020.015710.0002
states
state_id_array0.00120.121010.0012
state_identifier_array0.00100.104320.0005
Override
Cache load0.00150.1548180.0001
Sytem overhead
Fetch class attribute can translate value0.00070.073820.0004
Fetch class attribute name0.00130.134240.0003
XML
Image XML parsing0.00080.076220.0004
class_abstraction
Instantiating content class attribute0.00000.001040.0000
General
dbfile0.00070.0710170.0000
String conversion0.00000.000640.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
3content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
2content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
5content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
1content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 14
 Number of unique templates used: 7

Time used to render debug report: 0.0001 secs