Forums / Developer / Explanaion of module concept

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