Caution: This documentation is for eZ Publish legacy, from version 3.x to 6.x.
For 5.x documentation covering Platform see eZ Documentation Center, for difference between legacy and Platform see 5.x Architecture overview.

Installation

Installation

If you have installed eZ Teamroom according to the steps described here, eZ JS Core is already installed. This is also the case if you have installed eZ Flow or eZ Webin.

  1.  Download the eZ eZ JS Core package from http://projects.ez.no/ezjscore/downloads
  2.  Unpack the files into the 'Extension' directory of your eZ Publish installation.
  3.  Activate the extension by adding the following parameters to /settings/override/site. ini by to the [ExtensionSettings] section:
    ActiveExtensions[]=ezjscore
    
  4. Regenerate autoload array by running this script:

    php bin/php/ezpgenerateautoloads.php -e
    

    Or if you prefer to update the autoloads from the Admin Interface go to the Setup tab and click on the Extensions link in the menu on the left. In the list displayed check the eZ JS Core extension and click the Regenerate autoload arrays for extensions button.

  5.  Clear the INI and template caches. To do this from the administration interface, select the Setup tab and click on the Cache Management link in the menu on the left. Next you are able to select the needed clear cache buttons.
  6.  Some rewrite rules are necessary for eZ CS Core
     
    •  Rewrite Rules for lib folder
       eZ JSCore extension require correct Rewrite Rules in order to load the necessary yui (yahoo user interface) files from the file system. This is only required when this INI setting in ezjscore.ini is disabled/
      [eZJSCore]LoadFromCDN=disabled
      
      If this is the case add the following line to your Virtual-Host setup
      RewriteRile ^/extension/[^/]+/design/[^/]+/(stylesheets|flash|images|lib|javascripts?)/.* - [L]
      
    •  Rewrite Rules for script/css packing
       eZ JSCore packs javascript/css files together in order to decrease server requests and file size for faster download. When using eZ Publish 4.0.x you will need to make the following changes, if you have not already, when installing ezoe (Online Editor 5.0).
      •  .htaccess
         Change

        RewriteRule !\.(gif|jpe?g|png|css|js|html)|var(.+)storage.pdf(.+)\.pdf$ index.php
        

        in toOnline Editor 5.0:

        RewriteRule  !(\.(gif|jpe?g|png|css|js|html?)|var(.+)storage.pdf(.+)\.pdf)$ index.php
        
      •   Virtual Host mode
         add:
        RewriteRule ^/var/([^/]+/)?cache/public/.* - [L]
        
      • If you don't manage to get these changes working, you can disable this feature setting ezjscore.ini

        [eZJSCore]
        Packer=disabled
        
    •  Rewrite Rules for clustered enviroment
       In order to make eZ JS Core work in a cluster environment the following Rewrite Rule is required:
      RewriteRule ^/var/([^/]+/)?cache/public/.* /index_cluster.php [L]
      

Ester Heylen (12/07/2010 5:03 pm)

Andrea Melo (01/08/2012 7:04 am)

Ester Heylen, Geir Arne Waaler, Andrea Melo


Comments

There are no comments.