Make my own extension

Author Message

Christian Johansen

Thursday 26 April 2007 6:07:20 am

Is there any documentation on how to create my own extensions? I specifically wonder about content classes. I have some custom content classes I created with standard templates and icons for the admin interface and so on, can I wrap these up in an extension?

Felix Woldt

Thursday 26 April 2007 8:28:54 am

of course you can put your own design and the icons in your own extension.
If you install the new ez version 3.9.1 with the ezwebin extension you have an example for a design extension.

Greetings
Felix

http://www.jac-systeme.de - Developers united in eZ Publish: http://www.cjw-network.com

CJW Newsletter 1.0.0 released: http://projects.ez.no/cjw_newsletter

Christian Johansen

Friday 27 April 2007 1:01:39 am

I'll check it out. Does that include content classes as well? Aren't those stored in the database?

Felix Woldt

Friday 27 April 2007 1:28:24 am

The content classes are stored in the database!
You can create a package included the contentclasses for your extension, and store this under your extension anywhere.

Then you can easily import the required contentclasses, if you use your extension in another ez installation.

Greetings
Felix

http://www.jac-systeme.de - Developers united in eZ Publish: http://www.cjw-network.com

CJW Newsletter 1.0.0 released: http://projects.ez.no/cjw_newsletter

Christian Johansen

Friday 27 April 2007 2:03:45 am

"You can create a package included the contentclasses for your extension, and store this under your extension anywhere."

Can you point me to some documenation on how I do this?

Edit: Of course, as you said - what I want to do is to make a package, not an extension. This way you could install eZ Publish with my package and be up and running with my content classes and design right? I can't find the documentation for this.

Paul Borgermans

Friday 27 April 2007 2:21:50 am

http://ez.no/doc/ez_publish/technical_manual/3_8/features/packages

Paul

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

Jianjun Hu

Wednesday 29 August 2007 6:29:48 pm

I like this topic.

OnlyBlue

☆..·°∴°.☆°°.☆°.
°∴ °☆ .·enjoy star° .·★°∴°
∴°.°★ .·°
  ミ☆°∴°.★☆° ∴·°
°.☆° .·∴° 

Is it a pleasure after all to practice in due time what one has learnt?

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 06:17:06
Script start
Timing: Jan 19 2025 06:17:06
Module start 'layout'
Timing: Jan 19 2025 06:17:06
Module start 'content'
Timing: Jan 19 2025 06:17:07
Module end 'content'
Timing: Jan 19 2025 06:17:07
Script end

Main resources:

Total runtime0.7631 sec
Peak memory usage4,096.0000 KB
Database Queries73

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0044 590.2813152.6250
Module start 'layout' 0.00440.0030 742.906339.4453
Module start 'content' 0.00740.7542 782.3516664.9688
Module end 'content' 0.76170.0014 1,447.320316.1719
Script end 0.7631  1,463.4922 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00390.5053160.0002
Check MTime0.00130.1658160.0001
Mysql Total
Database connection0.00060.081910.0006
Mysqli_queries0.702792.0783730.0096
Looping result0.00070.0861710.0000
Template Total0.735196.320.3676
Template load0.00290.373620.0014
Template processing0.732295.951820.3661
Template load and register function0.00020.024910.0002
states
state_id_array0.00070.095810.0007
state_identifier_array0.00120.163620.0006
Override
Cache load0.00250.3312310.0001
Sytem overhead
Fetch class attribute can translate value0.00090.113340.0002
Fetch class attribute name0.00120.1566100.0001
XML
Image XML parsing0.00460.606140.0012
class_abstraction
Instantiating content class attribute0.00000.0024110.0000
General
dbfile0.00390.5089290.0001
String conversion0.00000.001240.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
7content/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
4content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
4content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 26
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs