Custom class

Author Message

Andy Cheng

Thursday 01 May 2003 9:47:23 pm

In the admin page, under setup, I can define my new class like adding text fields etc. However, how (or where I can find ref) to make a standard template for the class if no override is available in the side?

Paul Borgermans

Friday 02 May 2003 12:51:19 am

You need to study the template functions, and the provided examples. Try copying one of the available templates for other classes as a starting point (the article template is a good one to start from imho).

Paul

eZ Publish, eZ Find, Solr expert consulting and training
http://twitter.com/paulborgermans

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

Main resources:

Total runtime0.9589 sec
Peak memory usage4,096.0000 KB
Database Queries54

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0051 587.7891152.6094
Module start 'layout' 0.00510.0036 740.398439.4141
Module start 'content' 0.00860.9440 779.8125520.0781
Module end 'content' 0.95260.0062 1,299.89068.1953
Script end 0.9588  1,308.0859 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00360.3710160.0002
Check MTime0.00140.1462160.0001
Mysql Total
Database connection0.00080.079810.0008
Mysqli_queries0.910494.9437540.0169
Looping result0.00060.0591520.0000
Template Total0.924896.420.4624
Template load0.00620.642720.0031
Template processing0.918695.799820.4593
Template load and register function0.00030.027410.0003
states
state_id_array0.00100.101610.0010
state_identifier_array0.00340.353420.0017
Override
Cache load0.00180.185080.0002
Sytem overhead
Fetch class attribute can translate value0.00100.106620.0005
Fetch class attribute name0.00210.217730.0007
XML
Image XML parsing0.00070.072920.0003
class_abstraction
Instantiating content class attribute0.00000.000930.0000
General
dbfile0.00070.0705170.0000
String conversion0.00000.000840.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
2content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
2content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1content/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: 7
 Number of unique templates used: 5

Time used to render debug report: 0.0001 secs