Forums / Developer / child node data

child node data

Author Message

Anthony Kress

Sunday 17 April 2005 3:10:27 pm

I have created a new class for book_resource with categories Title (name), Author, Publisher, etc

I have created a folder called books, under which the the data entry person creates new nodes of book_resource class. I want this information to appear in the folder 'books' instead of showing each child node.

I have code to do this, however there are situations in which I need to store this information (both class member name and data - i.e publisher and publisher data - into variables.

Can you tell me how to do this?

Also, should there be no entry under, for instance,
the publisher, I dont want to show elemnet title (Publisher) on the page. Once I store the information into a variable, how do I test for an empty string?

Thank you for your help

Anthony Kress

 

 

Eivind Marienborg

Sunday 17 April 2005 11:00:36 pm

Defining variables:
http://ez.no/ez_publish/documentation/reference/template_functions/variables

Testing for empty strings:
http://www.ez.no/ez_publish/documentation/development/libraries/ez_template/functions/section
(Your interest lies under header "show")

Hope this helps :)