New to eZ Publish - Setting up templates

Author Message

Rick -

Monday 13 March 2006 11:58:44 pm

I'm new to eZ Publish, and I have to admit I'm finding it a bit confusing. The documentation is quite large, but I can't seem to find a simple step by step tutorial on creating a site with different sections having their own template.

I have my designs ready to go (css & xhtml) and my content loaded (using custom classes - they are great!). I've read some of the tutorials out there, but they are outdated, eg: http://ez.no/products/ez_publish/documentation/building_an_ez_publish_site/setting_up_the_main_layout and I can't seem to impliment my designs into the system.

Using this tutorial by Brad, http://www.sitepoint.com/article/table-less-css-ez-publish I've come to the conclusion that I do the following.

1.) Create a package
2.) Modify pagelayout.tpl manually using ftp

But what about different templates? I'm sure it has something to do with the overrides... but I'm unsure.

Any pointers in the right direction is much appreciated.

Cheers,

Rick.

Rick -

Tuesday 14 March 2006 1:20:57 am

Wait wait wait...

I think I've got it sorted now. Should have kept on reading this tutorial all the way through.

http://ez.no/products/ez_publish/documentation/building_an_ez_publish_site/the_welcome_page/creating_and_using_a_custom_template

My apologies.

Ɓukasz Serwatka

Tuesday 14 March 2006 1:23:51 am

Rick you are on a good way ;) This is tutorial is useful at the beginning, it will help you understand the basics and how to work with templates. It is still valid with latest eZ publish versions.

Personal website -> http://serwatka.net
Blog (about eZ Publish) -> http://serwatka.net/blog

Betsy Gamrat

Tuesday 14 March 2006 6:41:58 am

There is an error log in ez/var/log which has template errors listed. It can be really helpful.

In addition - the <b>{$some_object|attribute(show)}</b> operator can help you navigate through the object attributes.

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 21:11:52
Script start
Timing: Jan 18 2025 21:11:52
Module start 'layout'
Timing: Jan 18 2025 21:11:52
Module start 'content'
Timing: Jan 18 2025 21:11:53
Module end 'content'
Timing: Jan 18 2025 21:11:53
Script end

Main resources:

Total runtime1.0605 sec
Peak memory usage4,096.0000 KB
Database Queries62

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0069 588.0313152.6406
Module start 'layout' 0.00690.0073 740.671939.4766
Module start 'content' 0.01421.0450 780.1484589.9219
Module end 'content' 1.05920.0013 1,370.070312.1250
Script end 1.0605  1,382.1953 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00330.3072160.0002
Check MTime0.00130.1243160.0001
Mysql Total
Database connection0.00110.103910.0011
Mysqli_queries1.001294.4083620.0161
Looping result0.00110.1058600.0000
Template Total1.011595.420.5057
Template load0.00180.173120.0009
Template processing1.009695.200220.5048
Template load and register function0.00020.015410.0002
states
state_id_array0.00130.126910.0013
state_identifier_array0.00260.249620.0013
Override
Cache load0.00150.1428240.0001
Sytem overhead
Fetch class attribute can translate value0.00120.113330.0004
Fetch class attribute name0.00180.173060.0003
XML
Image XML parsing0.00140.129530.0005
class_abstraction
Instantiating content class attribute0.00000.001860.0000
General
dbfile0.00110.1048240.0000
String conversion0.00000.003240.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
4content/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
1content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
2content/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: 14
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs