Display the content of a node

Author Message

Mickel Scofield

Wednesday 21 March 2007 3:04:26 am

hi everybody,
i have created a class "agenda" with 2 attributes ( title and description ), and i have instanciate this class in the content menu,
what i want is how to display the content of this object in a template ?

thanks in advance

luca maroni

Sunday 25 March 2007 8:34:52 am

Hi Mickel,
I show them in a template in this way:

{$node.object.data_map.title.content.output.output_text}
{$node.object.data_map.description.content.output.output_text}

I'm quite new with eZpublish and I don't know if it is the best way.
Bye bye
Luca

Sylvain Bannier

Monday 26 March 2007 1:25:23 am

Hi both,

You should rather use the "attribute_view_gui" function to display attributes.

http://www.smile.fr

Heath

Monday 26 March 2007 1:27:32 am

http://ezpedia.org/wiki/en/ez/attribute_view_gui

hth

Brookins Consulting | http://brookinsconsulting.com/
Certified | http://auth.ez.no/certification/verify/380350
Solutions | http://projects.ez.no/users/community/brookins_consulting
eZpedia community documentation project | http://ezpedia.org

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