Need to find out how to hard code a node

Author Message

Jared Gilpin

Wednesday 04 February 2004 11:16:53 pm

I've put a template inside a template. So i need to input only one field from one article in a new class that i have made. I need to find out how to do the following:

node.object.attribute

so that it will pull the specific attribute from the node and display it on my page.
please help

Nathaniel Fitzgerald-Hood

Wednesday 04 February 2004 11:47:34 pm

This is a pretty common thing you'll do thoughout the site. You need to use the attribute_view_gui function. Pass it the node's attribute you want to render and it looks after the rest:

{attribute_view_gui attribute=$node.object.attribute}

This page has a list of similar functions : http://www.ez.no/ez_publish/documentation/development/libraries/ez_template/functions/function_list
under the heading "eZ publish kernel functions"

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