Settings only for admin interface

Settings only for admin interface

Saturday 19 September 2009 4:32:10 am - 2 replies

Author Message

André R.

Saturday 19 September 2009 5:28:10 am

Take advantage of ezjscore(formally ezyui, formally ezcore), its included in 4.2 when you install webin or flow, aim to support all 4.x versions and is going to be fully bundled in 4.3 (like ezoe).

http://projects.ez.no/ezjscore

It has:
* jQuery, YUI 2.x and YUI 3.0 is bundled (but CDN used by default)
* On demand JavaScript / css loading
* Packing and minification of loaded files
* Files are served by Apache/web server so only overhead on generation witch is cached and can be placed inside cache blocks that are pr uri
* Supports php and template handlers to generate JavaScript and css dynamically (same one used to integrate eZ Publish i18n with tinymce in ezoe)
* including php handlers to automatically get jQuery/Yui[2|3] from either cdn or locally based on settings in ezjscore.ini (see examples on project page)
* These handlers can also be called directly from JavaScript as a an very simple to setup Ajax call, as done in example on project site.
* Above handlers have full permission support as defined in ezjscore.ini
* Ajax call's can be accelerated out of the box by using index_ajax.php

What it currently lacks (and would be great to get some help / hints / requirements on):
* Documentation on how to get started. Currently there is only example on project page and in ezjscore.ini, as well as advance example in ezstarrating* and almost as advance example in ezoe 5.1.0alpha1**.
* Possibility to clear js/css cache from admin interface (currently you'll have to clear var/<site>/cache/public/*)
* template handlers does not let you specify expiry time like static files (modified time) and php handlers do ( ::getCacheTime )
* Instructions on how to setup "[ezscript|ezcss]_load()" on plain setup as well as ezwebin versions lower then 1.4 (aka ezflow lower then 1.1)
* Possibility to specify version you want of jQuery/YUI, currently you'll get what the ezjscore is configured for, should maybe be possible to select major branches like YUI 2.7 vs 2.8, but this is non issue in YUI 3.0 as it handles version loading in JavaScript..

* http://svn.projects.ez.no/ezstarrating/trunk/packages/ezstarrating_extension/ezextension/ezstarrating/design/standard/templates/content/datatype/view/ezsrrating.tpl

** http://svn.projects.ez.no/ezoe/trunk/ezoe/design/standard/templates/content/datatype/edit/ezxmltext_ezoe.tpl

eZ Online Editor 5: http://projects.ez.no/ezoe || eZJSCore (Ajax): http://projects.ez.no/ezjscore || eZ Publish EE http://ez.no/eZPublish/eZ-Publish-Enterprise-Subscription
@: http://twitter.com/andrerom

Jérôme Vieilledent

Monday 21 September 2009 9:04:03 am

Hi Andre

Thanks for the tip !
This <i>ezjscore</i> extension seems to be really great !
I'm going to plan a migration to ezjscore server functions of all my module views for my extension :-)

I have an issue : I can't load jQuery from my local FS. It always load the CDN one, even with <i>LoadFromCDN=disabled</i>. Any idea ?

You must be logged in to post messages in this topic!

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.