Explanaion of module concept

Author Message

Dominik Pich

Monday 08 December 2003 9:48:00 am

Hi,

could some explain me the concept behind modules and how to work with them or point me at some docs on this topic!?

Thank you,
Dominik

Eirik Alfstad Johansen

Tuesday 09 December 2003 3:06:10 am

Hi Dominik,

A simple explanation of modules is that they are groups of functions. An example is the ezp content module which includes several functions for managing objects and nodes. Another example is the shop module which handles the basket and order process.

To learn more about modules, I recommend studying the modules that come with ezp (kernel/module_name). You can also check out the following tutorial for instructions on how to create your own module.

http://www.ez.no/developer/ez_publish_3/documentation/development/extensions/module/module_tutorial_part_1

Sincerely,

Eirik Johansen
Netmaking AS

http://www.netmaking.no/

Sincerely,

Eirik Alfstad Johansen
http://www.netmaking.no/

Dominik Pich

Tuesday 09 December 2003 3:58:57 am

I tried using the media 'module' (It seems to be a module...) but I cant... a collegue of mine tried as well, but it just doesnt work.
OR I(we) still dont use modules correctly.

http://www.ez.no/developer/ez_publish_3/forum/developer/using_the_mediasection

Eirik Alfstad Johansen

Tuesday 09 December 2003 4:05:31 am

Hi Dominik,

Media is a section, not a module. You can tell by the URL to the media section which is /content/view/full/43 (content module, full view).

Sincerely,

Eirik Johansen
Netmaking AS

http://www.netmaking.no/

Sincerely,

Eirik Alfstad Johansen
http://www.netmaking.no/

Dominik Pich

Tuesday 09 December 2003 4:23:23 am

Hi, thank you,

ok... media is a section but what is the media tab for?
And why can I assign the media section a ~'navigation part' and assign it new classes?
What impact does that have?

Eirik Alfstad Johansen

Tuesday 09 December 2003 7:07:31 am

Hi Dominik,

I belive the purpose of the Media section is to present media related objects like images and the likes in a format better suited for these objects (image library style). I've had no use for it so far, though, so I can't say for sure.

Sincerely,

Eirik Johansen
Netmaking AS

http://www.netmaking.no/

Sincerely,

Eirik Alfstad Johansen
http://www.netmaking.no/

Dominik Pich

Wednesday 10 December 2003 12:37:26 am

That would explain the weird view-mode it has in the default admin interface.

Thank you

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 03:36:48
Script start
Timing: Jan 19 2025 03:36:48
Module start 'layout'
Timing: Jan 19 2025 03:36:48
Module start 'content'
Timing: Jan 19 2025 03:36:49
Module end 'content'
Timing: Jan 19 2025 03:36:49
Script end

Main resources:

Total runtime1.0930 sec
Peak memory usage4,096.0000 KB
Database Queries69

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0063 589.1563152.6250
Module start 'layout' 0.00630.0026 741.781339.4453
Module start 'content' 0.00901.0823 781.2266577.8750
Module end 'content' 1.09120.0017 1,359.101616.1641
Script end 1.0930  1,375.2656 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00380.3516160.0002
Check MTime0.00160.1482160.0001
Mysql Total
Database connection0.00100.095610.0010
Mysqli_queries1.020693.3766690.0148
Looping result0.00060.0592670.0000
Template Total1.058396.820.5291
Template load0.00280.254420.0014
Template processing1.055596.564320.5277
Template load and register function0.00020.020010.0002
states
state_id_array0.00120.107210.0012
state_identifier_array0.00130.115920.0006
Override
Cache load0.00240.2197450.0001
Sytem overhead
Fetch class attribute can translate value0.00060.059320.0003
Fetch class attribute name0.00170.158380.0002
XML
Image XML parsing0.00090.083620.0005
class_abstraction
Instantiating content class attribute0.00000.0019100.0000
General
dbfile0.00170.1581160.0001
String conversion0.00000.000740.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
12content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
6content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
3content/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: 30
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs