Tutorial or documentation explaining templates

Author Message

Gary Schultz

Thursday 26 August 2010 6:52:03 am

I'm evaluating different CMS's. While eZ Publish looks very promising, I thikn it has a very good content editing front end and good administrator tools, to me it is one of the most difficult CMS I have found when it comes to understanding the visual layout and template system. Are there any good resources that thoroughly explain the template system and how one goes about creating and implementing a new design in eZ Publish?

Thiago Campos Viana

Thursday 26 August 2010 7:54:23 am

Hi and welcome Gary!

There's a section in documentation about ez template system, I hope it helps.

You can see the skinning ez publish tutorial after learning the basics of ez publish template system.

eZ Publish Certified Developer: http://auth.ez.no/certification/verify/376924

Twitter: http://twitter.com/tcv_br

Gary Schultz

Thursday 26 August 2010 1:18:18 pm

Maybe it's just me, but I'm not following the template system that well. This also put's me at a crossroads. Right now I'm looking at eZ Publish and SilverStripe. Both systems have strengths and weaknesses as far as my ability to get the system to work as I want. For eZ Publish my weakness is the template system which I am struggling to figure out. I like other aspects of eZ Publish. In SilverStripe, the weakness for me is the editor, though SilverStripe offers some capabilities to the editor that make it unique.

So I will continue to try and understand eZ Publish template system. But I'm under a short time frame, if I can't figure it out soon I will have to go with SilverStripe.

Bertrand Dunogier

Friday 27 August 2010 12:02:45 am

Hi Gary, and welcome.

There are two things that should be distinguished here imho: the template system, and the design system. While the template system syntax is getting a bit old, and can be a bit cumbersome sometimes, eZ Publish design mechanism is imho one of the best things since sliced bread.

Regarding the template system itself, it is mostly quite simple. There is a whole documentation chapter about it, that is quite well structured (the one thiago gave you a link to).

The design system is a bit more complex, but also more powerful. It is this one that will let you override the files eZ Publish provides by default (templates, images, stylesheets, etc... everything). You can read more about them here: http://ez.no/doc/ez_publish/technical_manual/4_x/concepts_and_basics/designs. The subchapter for this page will show you one of the most powerful aspects: design combinations (http://ez.no/doc/ez_publish/technical_manual/4_x/concepts_and_basics/designs/design_combinations). eZ Publish basically uses an override system that will let you combine multiple designs in order to render your content, with the minimal amount of changes and code. This last chapter also explains quite well how these are configured in INI files.

It is a bit hard to tell you more than that without more accurate questions, but feel free to ask more details here (or on IRC, if you're an old geek: #ezpublish@irc.freenode.net.

Bertrand Dunogier
eZ Systems Engineering, Lyon
http://twitter.com/bdunogier
http://gplus.to/BertrandDunogier

Geoff Bentley

Friday 27 August 2010 2:31:22 am

Hi Gary,

There's some good plain english tutorials at http://www.onequarterenglish.co.uk/tag/ez-publish . Silverstripe and eZ Publish are two very different beasts, and any evaluation of CMSes should fundamentally be based on your project needs, now and in the future.

eZ Publish is an enterprise CMS, and infinitely configurable - it does require a steep learning curve, but is worth it in the long term.

Good luck!

Geoff

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 03:08:50
Script start
Timing: Jan 18 2025 03:08:50
Module start 'layout'
Timing: Jan 18 2025 03:08:50
Module start 'content'
Timing: Jan 18 2025 03:08:51
Module end 'content'
Timing: Jan 18 2025 03:08:51
Script end

Main resources:

Total runtime0.6393 sec
Peak memory usage4,096.0000 KB
Database Queries70

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0058 588.0469152.6406
Module start 'layout' 0.00580.0027 740.687539.4766
Module start 'content' 0.00850.6294 780.1641654.3438
Module end 'content' 0.63790.0014 1,434.507816.1250
Script end 0.6393  1,450.6328 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00290.4568160.0002
Check MTime0.00120.1905160.0001
Mysql Total
Database connection0.00130.197610.0013
Mysqli_queries0.576190.1053700.0082
Looping result0.00060.0870680.0000
Template Total0.614496.120.3072
Template load0.00230.356820.0011
Template processing0.612195.745120.3061
Template load and register function0.00020.031710.0002
states
state_id_array0.00020.037310.0002
state_identifier_array0.00070.102120.0003
Override
Cache load0.00190.3026310.0001
Sytem overhead
Fetch class attribute can translate value0.00060.100240.0002
Fetch class attribute name0.00110.173380.0001
XML
Image XML parsing0.00180.286340.0005
class_abstraction
Instantiating content class attribute0.00000.001980.0000
General
dbfile0.00100.1508280.0000
String conversion0.00000.001040.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
5content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
9content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
3content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
4content/datatype/view/ezxmltags/link.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/link.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 23
 Number of unique templates used: 6

Time used to render debug report: 0.0002 secs