Forums / General / ezPublish Basics

ezPublish Basics

Author Message

Henrik Brinkmann

Tuesday 14 June 2005 7:13:43 am

Hi all!

I'm new to eZPublish and i need some basic information about how eZPublish works.
I've read throug the documentation but there's still some Information which i'm missing or haven't found.

Is there some documentation which describes how eZPublish works in a detailed way?
For example: What exactly happens when i click on a specific link.
From what i know so far the choosen page is extracted from the url and some relating php File is called which again uses a specific template to show the desired content.
But how does this work in detail?

I've problems to find out which php-File is responsible to handle request x or y and uses template-file x or y.

For example if i click on "Media Files" in the live demo (user-interface).
The url in the browser changes to "http://devel.ezpublish.no/media_files" and a list of files is shown up. So from what i know after reading the basic Documentation this url calls the module "media_files". But which PHP-File is really called and then handles the request?

I've browsed through the directory structure and looked in some Files but i can't find out which file has which function.

I would be very glad if someone could give me link to a more detailed documentation or anything else which would help me to understand the basic structure of eZPublish.

Thanks in advance

Frank

Frederik Holljen

Tuesday 14 June 2005 7:25:47 am

The new documentation that will be online soon (it should have been online already but was postponed because of illness in the ez.no crew) will explain this in detail.

The crash course is as follows:
Index.php always handles the eZ publish requests. Basically index.php then runs the url through our nice URL engine. Your url "media_files" is then translated into what we call a system url. The system URL will in your case probably look something like "content/view/full/21". (You can use system url's directly from your browser if you like.. but then you need to know the node id at the end).

The system url tells you the module and the view to run. In your case it is the module "content" and the view "full". The rest of the URL is forwarded to the view as parameters.

After translating eZ publish runs the module and the view. In the case of the content module you should look at the files in the directory kernel/content/. module.php defines the various views etc.

The view loads and generates output via a template. The module output is given back to index.php which loads the main template pagelayout.tpl which outputs the module output wherever the user specified.

That should explain how a basic page request is handled with eZ publish. In case of input to eZ publish look at the "actions" that are also defined within module.php.

Henrik Brinkmann

Tuesday 14 June 2005 7:34:07 am

thanks for the fast answer, i'll try to "dig" at the specified points :-)

Anyway i'm looking forward to the new documentation :-)