A great way to learn ez3

Author Message

Sol Millin

Monday 14 April 2003 3:50:30 pm

If you are like me... struggling to understand how ez3 works...

A great way to learn is...

in .../design/demo/override/templates

take one of the templates e.g.

pagelayout_section_3.tpl

and back it up.

then go to work inserting your html comments in pagelayout_section_3.tpl!! e.g.

<!-- this is just before template call to page_head.tpl -->
{include uri="design:page_head.tpl" enable_glossary=false() enable_help=false()}
<!-- end of page_head.tpl include -->

Then run the demo web site (in this case the News Section).
It appears on your browser.
Then select (ie6) menu item View then select Source
and a beautiful html listing appears which includes all your comments!

You can now start appreciating what does what in ez3.

You can obviously do the same in the 'called' templates eg.page_head.tpl etc. etc.

Hope you find this as helpful as I have.

Good ez3 learning

Sol Millin
byron bay
australia

You can also use template comment if you wish to make other template code not execute, e.g.
{* start of non-execute of template code
blah blah blah
*}

although this may suffer from the limitation of non-nesting of template comments.

Sol Millin

Monday 14 April 2003 3:55:33 pm

Another very helpful tip is to install phpMyAdmin and examine the structure and contents of the nextgen mySQL database (assuming your using mySQL).

You'll find phpMyAdmin at
www.phpMyAdmin.net

Happy ez3 learning.

Karsten Jennissen

Tuesday 15 April 2003 12:06:40 am

Hi Sol,

if you turn on the debug output that gives you the templates used, you automatically get a lot of valuable info.

http://ezwiki.blanko.info/index.php/3XHT_SeeTmpls

Just as an additional help. :-)

Karsten

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 05:12:25
Script start
Timing: Jan 18 2025 05:12:25
Module start 'layout'
Timing: Jan 18 2025 05:12:25
Module start 'content'
Timing: Jan 18 2025 05:12:26
Module end 'content'
Timing: Jan 18 2025 05:12:26
Script end

Main resources:

Total runtime0.5443 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.0059 587.9063152.6250
Module start 'layout' 0.00590.0027 740.531339.4297
Module start 'content' 0.00860.5343 779.9609474.1016
Module end 'content' 0.54290.0014 1,254.06258.1797
Script end 0.5443  1,262.2422 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00320.5821160.0002
Check MTime0.00130.2368160.0001
Mysql Total
Database connection0.00060.115210.0006
Mysqli_queries0.495591.0347570.0087
Looping result0.00050.0883550.0000
Template Total0.519695.520.2598
Template load0.00190.352420.0010
Template processing0.517795.112620.2588
Template load and register function0.00010.026510.0001
states
state_id_array0.00080.152910.0008
state_identifier_array0.00070.126420.0003
Override
Cache load0.00170.3084400.0000
Sytem overhead
Fetch class attribute can translate value0.00050.090420.0002
Fetch class attribute name0.00100.192930.0003
XML
Image XML parsing0.00020.039120.0001
class_abstraction
Instantiating content class attribute0.00000.001730.0000
General
dbfile0.00060.1184100.0001
String conversion0.00000.001440.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
8content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
5content/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: 18
 Number of unique templates used: 5

Time used to render debug report: 0.0001 secs