Community day

At the eZ Winter Conference 2010, meet up with the community in Geneva, jan. 21st.
Register and read more here.

An Introduction to Developing eZ Publish Extensions

Most Content Management System requirements can be fulfilled by eZ Publish without any custom PHP coding. But sooner or later experienced eZ Publish implementers get to the point where a project needs some special functionality and it becomes necessary to develop extensions.

This tutorial will help you with the basics of writing extensions using a simple example to illustrate the concepts.

Prerequisites

  • An eZ Publish 3.x installation
  • Basic understanding of the structure of eZ Publish
  • Basic knowledge of PHP, SQL, MySQL and HTML

What will be demonstrated

In this tutorial you will learn how to create and configure a simple extension. It will also show how the eZ Publish framework can be used for development.

Latest comments

  • Dan Parchman, 31/12/2009 10:41 pm

    After adding the new function_definition.php file (page 9 - Template Fetch Functions) update the extension auto-load array by clicking the "Regenerate autoload arrays for extensions" button in the Admin panel Settings -> Extensions.


  • Dan Parchman, 31/12/2009 9:11 pm

    The code on page 8 which reads:
    -----------------------------------------------

    class JACExtensionData extends eZPersistentObject
    {
    /*!
    Konstruktor
    */
    function JACExtensionData( $row )
    {
    $this->eZPersistentObject( $row );
    }

    /*!
    Definition of the data object structure /of the structure of the database table
    */
    function definition()
    ---------------------------------------------

    In eZ Publish 4.x should be:
    -------------------------------------------

    class JACExtensionData extends eZPersistentObject
    {
    /*!
    Konstruktor
    */
    function JACExtensionData( $row )
    {
    $this->eZPersistentObject( $row );
    }

    /*!
    Definition of the data object structure /of the structure of the database table
    */
    static function definition()
    ------------------------------------------------

    Then it works!


You must be logged in to post comments.

Felix Woldt

Felix Woldt studied Informatics at the FH-Stralsund. During his studies and since taking his degree in 2004, he has been involved in eZ Publish and the programming of extensions. Felix is an active member of the German eZ Publish community (http://ezpublish.de) and employed by eZ Partner JAC Systeme (http://www.jac-systeme.de).

Powered by eZ Publish® Content Management System. Copyright © 2009 eZ Systems AS (except where otherwise noted). All rights reserved.