Syntax for object name pattern

Author Message

Marc Boon

Thursday 09 March 2006 7:10:49 am

What are the possibilities here?

I have seen:
<title> (taking the value of an attribute)
and
<short_title|title> (taking the value of an attribute if it exists, or the value of another attribute as a fallback value)

I also tried:
name (literal name)

But I would like to be able to do this:
<short_title|'default'>
Use the value of attribute 'short_title' if it exists, or a hardcoded default name otherwise.

Is this possible, and how?
What other object name patterns can I use?

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 00:12:27
Script start
Timing: Jan 19 2025 00:12:27
Module start 'layout'
Timing: Jan 19 2025 00:12:27
Module start 'content'
Timing: Jan 19 2025 00:12:28
Module end 'content'
Timing: Jan 19 2025 00:12:28
Script end

Main resources:

Total runtime0.8586 sec
Peak memory usage4,096.0000 KB
Database Queries46

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0049 587.9063152.6250
Module start 'layout' 0.00490.0028 740.531339.4453
Module start 'content' 0.00760.8496 779.9766403.7969
Module end 'content' 0.85730.0013 1,183.77348.1641
Script end 0.8586  1,191.9375 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00310.3568160.0002
Check MTime0.00120.1438160.0001
Mysql Total
Database connection0.00080.091810.0008
Mysqli_queries0.823895.9436460.0179
Looping result0.00040.0488440.0000
Template Total0.830696.720.4153
Template load0.00200.229220.0010
Template processing0.828696.510520.4143
Template load and register function0.00030.034710.0003
states
state_id_array0.00100.115910.0010
state_identifier_array0.00080.087520.0004
Override
Cache load0.00160.1871150.0001
Sytem overhead
Fetch class attribute can translate value0.00060.064910.0006
Fetch class attribute name0.00060.072310.0006
XML
Image XML parsing0.00010.009910.0001
class_abstraction
Instantiating content class attribute0.00000.000510.0000
General
dbfile0.00060.0724100.0001
String conversion0.00000.000640.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
1content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
5content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
4content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.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: 5

Time used to render debug report: 0.0001 secs