Forums / Developer / Object content.
Pavel Konovalov
Tuesday 28 November 2006 8:06:01 am
Hi 2 all! Please forgive to me my illiteracy.I have an object:
$my_article_list = eZPersistentObject::fetchObjectList( eZContentObject::definition(), $fields, $conditions, $sorts, $limits, $asObject, false, null, $add_conds_sql);
How I can get access to the "title" or "intro" of each aticle?
Are you gangsters?! No, we are Russians.
Kristian Hole
Tuesday 28 November 2006 8:25:23 am
It would be something like this:
forach( $my_article_list as $article ) { $dataMap = $article->attribute('data_map'); // Getting the text depends on the datatype $titleText = $dataMap['title']->attribute('content'); // For intro text see: // http://serwatka.net/en/blog/ezxmltext_how_to_store_and_ouput_your_content }
Additional info here:http://serwatka.net/en/blog
Kristian http://ez.no/ez_publish/documenta...tricks/show_which_templates_are_used http://ez.no/doc/ez_publish/techn...te_operators/miscellaneous/attribute
Tuesday 28 November 2006 8:52:12 am
Thank you, Kristian.This is a solve of my problem;-)