Forums / General / Tutorial or documentation explaining templates

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

eZ debug

Timing: Jan 29 2025 13:33:27
Script start
Timing: Jan 29 2025 13:33:27
Module start 'content'
Timing: Jan 29 2025 13:33:27
Module end 'content'
Timing: Jan 29 2025 13:33:27
Script end

Main resources:

Total runtime0.1334 sec
Peak memory usage2,048.0000 KB
Database Queries141

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0062 588.0547180.8203
Module start 'content' 0.00620.0050 768.875097.8984
Module end 'content' 0.01130.1221 866.7734526.1250
Script end 0.1333  1,392.8984 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00322.3671200.0002
Check MTime0.00130.9637200.0001
Mysql Total
Database connection0.00090.709810.0009
Mysqli_queries0.089366.96141410.0006
Looping result0.00110.80481390.0000
Template Total0.121891.310.1218
Template load0.00070.556810.0007
Template processing0.121090.722310.1210
Override
Cache load0.00050.362910.0005
Sytem overhead
Fetch class attribute can translate value0.00070.536810.0007
XML
Image XML parsing0.00020.174810.0002
General
dbfile0.00685.1332200.0003
String conversion0.00000.003830.0000
Note: percentages do not add up to 100% because some accumulators overlap

CSS/JS files loaded with "ezjscPacker" during request:

CacheTypePacklevelSourceFiles
CSS0extension/community/design/community/stylesheets/ext/jquery.autocomplete.css
extension/community_design/design/suncana/stylesheets/scrollbars.css
extension/community_design/design/suncana/stylesheets/tabs.css
extension/community_design/design/suncana/stylesheets/roadmap.css
extension/community_design/design/suncana/stylesheets/content.css
extension/community_design/design/suncana/stylesheets/star-rating.css
extension/community_design/design/suncana/stylesheets/syntax_and_custom_tags.css
extension/community_design/design/suncana/stylesheets/buttons.css
extension/community_design/design/suncana/stylesheets/tweetbox.css
extension/community_design/design/suncana/stylesheets/jquery.fancybox-1.3.4.css
extension/bcsmoothgallery/design/standard/stylesheets/magnific-popup.css
extension/sevenx/design/simple/stylesheets/star_rating.css
extension/sevenx/design/simple/stylesheets/libs/fontawesome/css/all.min.css
extension/sevenx/design/simple/stylesheets/main.v02.css
extension/sevenx/design/simple/stylesheets/main.v02.res.css
JS0extension/ezjscore/design/standard/lib/yui/3.17.2/build/yui/yui-min.js
extension/ezjscore/design/standard/javascript/jquery-3.7.0.min.js
extension/community_design/design/suncana/javascript/jquery.ui.core.min.js
extension/community_design/design/suncana/javascript/jquery.ui.widget.min.js
extension/community_design/design/suncana/javascript/jquery.easing.1.3.js
extension/community_design/design/suncana/javascript/jquery.ui.tabs.js
extension/community_design/design/suncana/javascript/jquery.hoverIntent.min.js
extension/community_design/design/suncana/javascript/jquery.popmenu.js
extension/community_design/design/suncana/javascript/jScrollPane.js
extension/community_design/design/suncana/javascript/jquery.mousewheel.js
extension/community_design/design/suncana/javascript/jquery.cycle.all.js
extension/sevenx/design/simple/javascript/jquery.scrollTo.js
extension/community_design/design/suncana/javascript/jquery.cookie.js
extension/community_design/design/suncana/javascript/ezstarrating_jquery.js
extension/community_design/design/suncana/javascript/jquery.initboxes.js
extension/community_design/design/suncana/javascript/app.js
extension/community_design/design/suncana/javascript/twitterwidget.js
extension/community_design/design/suncana/javascript/community.js
extension/community_design/design/suncana/javascript/roadmap.js
extension/community_design/design/suncana/javascript/ez.js
extension/community_design/design/suncana/javascript/ezshareevents.js
extension/sevenx/design/simple/javascript/main.js

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0001 secs