Queries on template code

Author Message

Bill Smith

Sunday 06 August 2006 8:53:52 pm

Hi, all, I am just a beginner with eZpublish

when I read the codes of eZpublish

I always find sentences such as

{section show=$wrong_email}

{section show=$generated}

seems there are actions inside these codes

but where are the source codes for these actions

thanks very much

Bill Smith

Sunday 06 August 2006 9:01:26 pm

And one more questions, where are the variables like $wrong_email defined?

thanks

Tore Skobba

Monday 07 August 2006 1:37:06 am

What do you mean with source codes? Basically all eZ tempalte (code) is within curley brackets, this also include variables definition:

<h2>Heading</h2>
{def $name='Tore'}
{if $name|eq('Tore')}
<p>Name is Tore</p>
{/if}
{undef}

As such when viewing an tempalte look for the curley brackets for find the tempalte code.

Please note that section is deprecated, there is a new template code syntax being used now.

Ref: http://ez.no/doc/ez_publish/technical_manual/3_8/templates/the_template_language

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 19:18:16
Script start
Timing: Jan 18 2025 19:18:16
Module start 'layout'
Timing: Jan 18 2025 19:18:16
Module start 'content'
Timing: Jan 18 2025 19:18:17
Module end 'content'
Timing: Jan 18 2025 19:18:17
Script end

Main resources:

Total runtime0.9609 sec
Peak memory usage4,096.0000 KB
Database Queries57

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0099 587.9141152.6250
Module start 'layout' 0.00990.0057 740.539139.4453
Module start 'content' 0.01550.9443 779.9844466.8359
Module end 'content' 0.95980.0011 1,246.82038.1641
Script end 0.9609  1,254.9844 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00370.3819160.0002
Check MTime0.00140.1476160.0001
Mysql Total
Database connection0.00070.074910.0007
Mysqli_queries0.907894.4734570.0159
Looping result0.00060.0594550.0000
Template Total0.910694.820.4553
Template load0.00240.254320.0012
Template processing0.908194.502420.4541
Template load and register function0.00030.026910.0003
states
state_id_array0.00090.090810.0009
state_identifier_array0.00100.105920.0005
Override
Cache load0.00210.2169250.0001
Sytem overhead
Fetch class attribute can translate value0.00150.158520.0008
Fetch class attribute name0.00200.212330.0007
XML
Image XML parsing0.00030.027020.0001
class_abstraction
Instantiating content class attribute0.00000.000930.0000
General
dbfile0.00060.0653100.0001
String conversion0.00000.001640.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
3content/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
1content/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: 10
 Number of unique templates used: 5

Time used to render debug report: 0.0001 secs