collected_info_collection

Author Message

Joël LEGER

Wednesday 24 September 2008 8:29:36 am

Hi,

i read articles, docs and forums on how to get info collected.
so i used this code :

{def $collection_count = fetch(content, collected_info_count, hash(object_id, $node.object.id))} 
    {for 1 to $collection_count as $counter} 
        {def $collection = fetch(content, collected_info_collection, hash(collection_id, $counter, contentobject_id, $node.object.id))} 
            <p>{$collection.data_map.votre_attribut.data_text}</p> 
        {undef $collection} 
    {/for} 
{undef $collection_count}

The problem is this code fetch the incremental number (1...to n) and not the collection_id.

So my question is how to fetch the collection_id of a contentobject_id ?

Joël LEGER

Monday 29 September 2008 12:48:56 am

For people who intereted, i found a no documented function

collected_info_list

who fixed my problem.

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

Main resources:

Total runtime0.0274 sec
Peak memory usage4,096.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0058 588.1328151.2109
Module start 'layout' 0.00580.0050 739.3438220.6875
Module start 'content' 0.01080.0149 960.0313997.8047
Module end 'content' 0.02570.0017 1,957.835929.9922
Script end 0.0274  1,987.8281 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.003011.0773140.0002
Check MTime0.00134.7324140.0001
Mysql Total
Database connection0.00072.570510.0007
Mysqli_queries0.002910.700930.0010
Looping result0.00000.094810.0000
Template Total0.00134.910.0013
Template load0.00114.061310.0011
Template processing0.00020.776310.0002
Override
Cache load0.00082.946010.0008
General
dbfile0.00186.625780.0002
String conversion0.00000.035640.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0001 secs