Output List with Express Data Objects
Permalink
Hi,
i setup a Express Data Obectt with the name
"Feature" and with two Attributes like
"Icon"
"Label"
Now i want to output this list. I use the block "express_entry_list"
I want to loop over all entries (rows) and address the attributes directly.
How can i do this?
I have this and i do not want to loop over the columns
<?php
$results = $result->getItemListObject()->getResults();
if (count($results)) { ?>
//what can i use here to get the attribute label
<?php } } ?>
Thanks
i setup a Express Data Obectt with the name
"Feature" and with two Attributes like
"Icon"
"Label"
Now i want to output this list. I use the block "express_entry_list"
I want to loop over all entries (rows) and address the attributes directly.
How can i do this?
I have this and i do not want to loop over the columns
<?php
$results = $result->getItemListObject()->getResults();
if (count($results)) { ?>
//what can i use here to get the attribute label
<?php } } ?>
Thanks
I know this is a very old thread, but just because I stumble over the same thing just a few minutes ago and hope it will help someone in the future.
You can access the item attributes directly by getting the Entry first.
I.e:
For performance reason it would probably be better if you assign the $item->getEntry() to a variable first, before using it for multiple outputs.