Casual choice of object

Author Message

Pavel Konovalov

Friday 17 November 2006 11:16:20 am

Hello.
I have a problem.
I have the objects that differ only by value of one of the attributes.

I want to select objects by value of attribute
(this attribute have a 4 different values),
but selection should be in... the way of "casual choice".

How can I do this?
Thx

Are you gangsters?!
No, we are Russians.

Claudia Kosny

Friday 17 November 2006 12:04:07 pm

Hi Pavel

Maybe it is just to late in the evening for me but frankly I have no idea what you mean by 'casual choice'.

If you want to fetch only nodes where the attribute in question has a specific value you can use the attribute filter in the content list fetch function (works only if the attribute does not allow for multiple selection). Just check the docu for this: http://ez.no/doc/ez_publish/technical_manual/3_8/reference/modules/content/fetch_functions/list

If that is not what you want please give me a concrete example.

Claudia

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:31:00
Script start
Timing: Jan 18 2025 22:31:00
Module start 'layout'
Timing: Jan 18 2025 22:31:00
Module start 'content'
Timing: Jan 18 2025 22:31:01
Module end 'content'
Timing: Jan 18 2025 22:31:01
Script end

Main resources:

Total runtime0.8868 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.0064 587.9063152.6250
Module start 'layout' 0.00640.0037 740.531339.4453
Module start 'content' 0.01020.8747 779.9766521.8359
Module end 'content' 0.88480.0020 1,301.81258.1719
Script end 0.8868  1,309.9844 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00370.4139160.0002
Check MTime0.00160.1823160.0001
Mysql Total
Database connection0.00130.142810.0013
Mysqli_queries0.838294.5233540.0155
Looping result0.00060.0642520.0000
Template Total0.849495.820.4247
Template load0.00250.284720.0013
Template processing0.846895.492520.4234
Template load and register function0.00010.014710.0001
states
state_id_array0.00100.107510.0010
state_identifier_array0.00070.083220.0004
Override
Cache load0.00190.2184180.0001
Sytem overhead
Fetch class attribute can translate value0.00060.068920.0003
Fetch class attribute name0.00140.152530.0005
XML
Image XML parsing0.00060.064420.0003
class_abstraction
Instantiating content class attribute0.00000.000730.0000
General
dbfile0.00180.1979160.0001
String conversion0.00000.001040.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
1content/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
3content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
4content/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: 12
 Number of unique templates used: 6

Time used to render debug report: 0.0002 secs