Module building - basix

Author Message

Clemens T

Wednesday 11 May 2005 7:00:54 am

Hello All,
Currently I'm using my own website CMS and modules written by me, but I want to rebuild them in my ezPublish environment.

I'd like to ask you what are the design guidelines when building ezPublish modules. I would like to install these modules on several ezPublish sites.

- What should be where?
- What is THE correct way, and why is this the way for ez?
- Do I need to use PHP, or is it better to use ez-scripting (in my modules)?
- How does installing a module work/packaging of your module?

Because I didn't create any code yet, I'd like to do it the EZpublish!!
Thanks for any contributions,
Greets,
Clemens

Ekkehard Dörre

Wednesday 11 May 2005 7:13:44 am

Hi,

You can start with http://ez.no/ez_publish/documentation/development/extensions/module
and the book. A lot of extensions are in
http://ez.no/community/contribs

and here:
http://pubsvn.ez.no/community/trunk/extension/

Coding Standards:
http://ez.no/ez_publish/documentation/development/standards/php
http://ez.no/ez_publish/documentation/development/standards/template
http://ez.no/ez_publish/documentation/development/standards/sql

Clemens wrote:
<i>- Do I need to use PHP, or is it better to use ez-scripting (in my modules)? </i>

Depends on, what You need. You can make a lot thinks with ez only with the template language. Sometimes it is better to use php.

Greetings, ekke

http://www.coolscreen.de - Over 40 years of certified eZ Publish know-how: http://www.cjw-network.com
CJW Newsletter: http://projects.ez.no/cjw_newsletter - http://cjw-network.com/en/ez-publ...w-newsletter-multi-channel-marketing

Clemens T

Wednesday 11 May 2005 8:38:23 am

Thank you, I'll be reading those documents, I found the following tutorial very usefull as well:

http://ez.no/ez_publish/documentation/development/extensions/building_an_ez_publish_module

I'm beginning to get a clue on how this all works toegether now, but it's hard :).
Greets,
Clemens

Ekkehard Dörre

Wednesday 11 May 2005 11:35:04 am

it is hard. But after some years... ;-)

Greetings, ekke

http://www.coolscreen.de - Over 40 years of certified eZ Publish know-how: http://www.cjw-network.com
CJW Newsletter: http://projects.ez.no/cjw_newsletter - http://cjw-network.com/en/ez-publ...w-newsletter-multi-channel-marketing

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 19 2025 04:41:28
Script start
Timing: Jan 19 2025 04:41:28
Module start 'layout'
Timing: Jan 19 2025 04:41:28
Module start 'content'
Timing: Jan 19 2025 04:41:29
Module end 'content'
Timing: Jan 19 2025 04:41:29
Script end

Main resources:

Total runtime0.7764 sec
Peak memory usage4,096.0000 KB
Database Queries60

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0053 590.2500152.6094
Module start 'layout' 0.00530.0023 742.859439.4141
Module start 'content' 0.00760.7668 782.2734555.9219
Module end 'content' 0.77450.0018 1,338.195312.1875
Script end 0.7763  1,350.3828 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00320.4125160.0002
Check MTime0.00130.1668160.0001
Mysql Total
Database connection0.00080.102510.0008
Mysqli_queries0.713191.8524600.0119
Looping result0.00060.0817580.0000
Template Total0.748096.420.3740
Template load0.00200.251820.0010
Template processing0.746196.096820.3730
Template load and register function0.00010.016110.0001
states
state_id_array0.00070.091910.0007
state_identifier_array0.00110.136520.0005
Override
Cache load0.00170.2199400.0000
Sytem overhead
Fetch class attribute can translate value0.00070.093320.0004
Fetch class attribute name0.00190.247350.0004
XML
Image XML parsing0.00100.124020.0005
class_abstraction
Instantiating content class attribute0.00000.002260.0000
General
dbfile0.00100.1254160.0001
String conversion0.00000.000940.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
8content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
11content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.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: 27
 Number of unique templates used: 6

Time used to render debug report: 0.0002 secs