Tutorials & articles written by Grenland Web (Jan Kudlicka)

Helper Child Nodes: User-Friendly Search Results and Preventing Full Node Views

In an eZ Publish site structure, there are often nodes that hold information shown as a part of the full view of a different, master node. Showing the full view of the former nodes themselves or getting them as search results is usually unwanted. This is common in forums and articles with comments. If you have worked on a large eZ Publish project, you have probably used such nodes without referring to them by a specific name. This article explains what we call “helper nodes” and also explores the template and content model issues involved, relating specifically to search results.

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 18 2025 14:55:15
Script start
Timing: Jan 18 2025 14:55:15
Module start 'layout'
Timing: Jan 18 2025 14:55:15
Module start 'community'
Timing: Jan 18 2025 14:55:15
Module end 'community'
Timing: Jan 18 2025 14:55:15
Script end

Main resources:

Total runtime0.0550 sec
Peak memory usage4,096.0000 KB
Database Queries24

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0044 589.2344152.6094
Module start 'layout' 0.00440.0016 741.843831.6563
Module start 'community' 0.00600.0480 773.5000415.0781
Module end 'community' 0.05400.0010 1,188.578110.6406
Script end 0.0550  1,199.2188 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00254.5735140.0002
Check MTime0.00101.8220140.0001
Mysql Total
Database connection0.00061.100910.0006
Mysqli_queries0.028852.2339240.0012
Looping result0.00020.2975210.0000
Template Total0.041675.620.0208
Template load0.00132.314020.0006
Template processing0.040373.259020.0202
Template load and register function0.00010.156310.0001
Override
Cache load0.00091.554840.0002
states
state_id_array0.00071.349510.0007
state_identifier_array0.00030.630210.0003
Sytem overhead
Fetch class attribute name0.00101.727210.0010
class_abstraction
Instantiating content class attribute0.00000.023810.0000
General
dbfile0.00010.268570.0000
String conversion0.00000.011330.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1community/articles.tpl<No override>extension/community_design/design/suncana/templates/community/articles.tplEdit templateOverride template
1content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
1content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 4
 Number of unique templates used: 4

Time used to render debug report: 0.0001 secs