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.
- Download the eZ eZ JS Core package from http://projects.ez.no/ezjscore/downloads
- Unpack the files into the 'Extension' directory of your eZ Publish installation.
- Activate the extension by adding the following parameters to /settings/override/site. ini by to the [ExtensionSettings] section:
ActiveExtensions[]=ezjscore
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.
- 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.
- 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 setupRewriteRile ^/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
ChangeRewriteRule !\.(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)
Comments
There are no comments.