Where can I find developer guides?

Author Message

Steven Stieng

Friday 21 May 2010 2:48:11 am

Hi.

I'm a noob to eZ Publish and I need to find some guides that will help me develop custom templates for eZ.

 I'm currently looking here: http://ez.no/doc/ez_publish/technical_manual/3_8/templates/template_basics/node_templates

But it lacks programming examples. I need to figure out how to extract certain data from specific templates. (I know how to add new properties to nodes / templates)

Are there any good guides with example code out there?

 PS. This thread should probably be moved to the 'General' section.

Paul Leclercq

Friday 21 May 2010 4:03:22 am

Hello Steven,

You will get better information in the reference section of the documentation:
http://ez.no/doc/ez_publish/technical_manual/4_x/reference/template_operators/miscellaneous/attribute

But to extract data from template variables you will need to do this:
{$variable_name|attribute(show, 1)}

although if your object is not a string

{$variable_name} for simple variables

Once you start digging into the actual php code, you will also be able to use:
http://pubsvn.ez.no/doxygen/trunk/html/

eZPedia, is also a good source of information, if you start writing extensions
http://ezpedia.org/

eZPlanet, is also a good place to keep updated with the community, since you will find a lot of code exemples on the blogs of other developpers

http://www.planetezpublish.org/

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

Main resources:

Total runtime0.0176 sec
Peak memory usage2,048.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0078 589.0391152.6250
Module start 'layout' 0.00780.0034 741.664139.4609
Module start 'content' 0.01120.0044 781.125089.3359
Module end 'content' 0.01560.0019 870.460930.3047
Script end 0.0176  900.7656 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002413.7140140.0002
Check MTime0.00116.0594140.0001
Mysql Total
Database connection0.00116.531010.0011
Mysqli_queries0.004123.420430.0014
Looping result0.00000.249410.0000
Template Total0.00169.010.0016
Template load0.00084.667610.0008
Template processing0.00084.338210.0008
Override
Cache load0.00063.195710.0006
General
dbfile0.00063.464180.0001
String conversion0.00000.046140.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_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