Object content.

Object content.

Tuesday 28 November 2006 8:06:01 am - 2 replies

Author Message

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

Pavel Konovalov

Tuesday 28 November 2006 8:52:12 am

Thank you, Kristian.
This is a solve of my problem;-)

Are you gangsters?!
No, we are Russians.

You must be logged in to post messages in this topic!

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.