Installation

This section covers the eZ Publish Style Editor installation instructions. In order to install eZ Publish Style Editor properly follow these steps:

  1. Extract the ezstyleeditor-1.X.0.tar.gz.tgz archive in the eZ Publish extension folder.
    Note: The X in the version represents part of the version number, since the installation steps below are suitable for all eZ Style Editor versions of this branch.
  2. Enable the ez style editor extension. This can be done either in the administration interface, via the "Extensions"-link, which can be accessed in the left menu under the "Setup"-tab, or manually in the settings/override/site.ini.append.php by adding ezstyleeditor to the Active Extensions as shown below:

    [ExtensionSettings]
    [...]
    ActiveExtensions[]=ezstyleeditor
    ActiveExtensions[]=ezwebin
    [...]
    
  3. Update PHP autoload array by executing the following script from the eZ Publish root folder:

    php bin/php/ezpgenerateautoloads.php -e -p
    
  4. Import SQL script with a schema relevant for your database. Currently supported are MySQL, PostgreSQL and Oracle. Following MySQL example shows how to import DB schema:

    $ mysql --host=<mysql_host> --port=<port> -u <mysql_user> -p<mysql_password> <database> < extension/ezstyleeditor/sql/mysql/mysql.sql
    
  5. Place the following code in the <head> section of the pagelayout.tpl template(s):

    {if is_set( $display_styleeditor_visualtoolbar )}
        {include uri="design:styleeditor/visual.tpl"}
    {/if}
    
  6. Configure an image repository INI setting in extension/ezstyleeditor/settings/ezstyleeditor.ini:

    [StyleEditor]
    ImageRepository
    
  7. Add to your public site access following configuration setting for image aliases in image.ini.append.php

    [AliasSettings]
    AliasList[]=styleeditor
     
    [styleeditor]
    Reference=
    Filters[]
    Filters[]=geometry/scaledownonly=100;75
    
  8. Add the following settings to your ezjscore.ini.append.php:

    [ezjscServer]
    FunctionList[]=styleeditor
     
    [ezjscServer_ezcsse]
    Class=ezcsseServerCallFunctions
    File=extension/ezstyleeditor/classes/ezcsseservercallfunctions.php
    Functions[]=styleeditor
    
  9. Add the following settings to your websitetoolbar.ini.append.php settings file:

    [CustomTemplateSettings]
    CustomTemplateList[]=styleeditor
     
    IncludeInView[]
    IncludeInView[styleeditor]=full
    
  10. Then go to Roles and policies (On the Users tab) and give your users (e.g. Editors) permission to access the ezjscore / call / FunctionList( styleeditor ) function, for your users to have access to the styleeditor functionalities.
  11. Clear the cache by executing following command from eZ Publish root folder:

    php bin/php/ezcache.php --clear-all --purge
    
Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2013 eZ Systems AS (except where otherwise noted). All rights reserved.