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 :)

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

eZ debug

Timing: Jan 19 2025 07:02:27
Script start
Timing: Jan 19 2025 07:02:27
Module start 'layout'
Timing: Jan 19 2025 07:02:27
Module start 'content'
Timing: Jan 19 2025 07:02:28
Module end 'content'
Timing: Jan 19 2025 07:02:28
Script end

Main resources:

Total runtime1.5404 sec
Peak memory usage4,096.0000 KB
Database Queries54

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0061 590.4609152.6094
Module start 'layout' 0.00610.0031 743.070339.4141
Module start 'content' 0.00921.5292 782.4844494.0000
Module end 'content' 1.53840.0019 1,276.48448.1953
Script end 1.5403  1,284.6797 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00350.2261160.0002
Check MTime0.00160.1011160.0001
Mysql Total
Database connection0.00060.041610.0006
Mysqli_queries1.487796.5793540.0275
Looping result0.00060.0422520.0000
Template Total1.503597.620.7517
Template load0.00230.150820.0012
Template processing1.501197.451820.7506
Template load and register function0.00020.016010.0002
states
state_id_array0.00130.083010.0013
state_identifier_array0.00170.113220.0009
Override
Cache load0.00180.1200210.0001
Sytem overhead
Fetch class attribute can translate value0.00070.046920.0004
Fetch class attribute name0.00090.059730.0003
XML
Image XML parsing0.00060.040720.0003
class_abstraction
Instantiating content class attribute0.00000.000530.0000
General
dbfile0.00330.2175160.0002
String conversion0.00000.000440.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
2content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
4content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
3content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 12
 Number of unique templates used: 6

Time used to render debug report: 0.0002 secs