Forums / Setup & design / fetch collected information id

"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".

fetch collected information id

Author Message

Alan Fowler

Tuesday 25 January 2011 6:24:08 am

Hi,

I'm looking for a way to fetch the list of collected information id's for an object. I can fetch the creator name using:

{$col.creator.contentobject.name|wash}

and can collect the attribute names and entries using:

{def $collection=fetch('content','collected_info_list', hash('object_id', $obj.id))}

{foreach $collection as $col}

{foreach $col.attributes as $colAttr} {$colAttr.contentclass_attribute_name}

{attribute_result_gui view=info attribute=$colAttr} {/foreach} {/foreach}

but how do you get the collected information 'id' to be output?

Many thanks

Alan

Franck Magnan

Tuesday 25 January 2011 11:20:10 am

Hello Alan,
to display all data of a variable, you can use the attribute operator.
For example, you can modify your code to get this:

{def $collection=fetch('content','collected_info_list', hash('object_id', $obj.id))}
    {foreach $collection as $col}
        {foreach $col.attributes as $colAttr}
            {$colAttr|attribute('show',1)}
        {/foreach}
    {/foreach}
{undef $collection}

++

--
Developer at Open Wide

Alan Fowler

Thursday 27 January 2011 1:33:20 pm

Hi Franck,

Many thanks - took a bit of further coding but I got there.

Best

Alan