[eZjaxx] Ajax Admin extension discussion

Author Message

André R.

Monday 09 October 2006 8:53:01 am

This is a forum thread to discuss eZjaxx.
A Ajax / speed up extension for eZ Publish 3.8 / 3.9, more:
http://ez.no/community/contribs/applications/ezjaxx

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

Paul Forsyth

Monday 09 October 2006 9:12:19 am

Nice.

I tried with 3.6 but it didnt work at all :( I know its not rated for 3.6 :)

Paul

André R.

Monday 09 October 2006 11:19:36 am

Hi,

thats true. I havn't had time to test it for 3.7 / 3.6 yet.
Hopefully it's only a couple of if is_set($:currentNode.object.language_js_array) checks :)
But I do have plan to add 3.7 / 3.6 support, because of the heavy use of 3.6+ syntax, sub 3.6 support is not planned.

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

Marco Zinn

Monday 09 October 2006 1:16:59 pm

Version 0.3 works quite nice.
Suggestions:
- Use class/attribute identifiers for limiting search attributes instead of IDs.
- Add a "Nothing found" message, if search does not find a hit

Bugs: ?
- Search only seems to find wildcarded search strings with three or more characters. Will find abc*, but not ab*
- Trying to "copy here" an image inside a gallery gives me an ez kernel 20 error message at the URL /index.php/galleries/undefined/76 . What this?
- Quick setting tool does not reflect any status changes. Probably due to caching the right menu a bit too much.

Marco
http://www.hyperroad-design.com

André R.

Monday 09 October 2006 3:20:35 pm

>>Version 0.3 works quite nice.
I just tried on some other install(3.8.4), and got some errors, so seems that you where lucky :)

>>- Use class/attribute identifiers for limiting search attributes instead of IDs.
I'll look into that

>>- Add a "Nothing found" message, if search does not find a hit
Fixed in 0.4(bug)

>>- Search only seems to find wildcarded search strings with three or more characters. Will find abc*, but not ab*
I'll look into that as well

>>- Trying to "copy here" an image inside a gallery gives me an ez kernel 20 error message at the URL /index.php/galleries/undefined/76 . What this?
Fixed in 0.4, js bug

>>- Quick setting tool does not reflect any status changes. Probably due to caching the right menu a bit too much.
You where absolutly right, added more cache block keys

-ar

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

Marco Zinn

Wednesday 11 October 2006 11:57:28 am

Hi,
i tested v0.5 on ez 3.8.1. Update from v0.3 to v0.5 was done by overwriting all files with the new ones in the zip, clearing all template and content caches. Using Firefox 1.5

Notes:
- Object Search still only works with three or more chars, when using wildcards. Do you use the internal ez search? If so, this can be configured in some ini file, i guess
- When in browse mode, i cannot use the content tree menu, as this leaves the browse mode now (urls do not contain "browse").
- How should the drag and drop stuff work? I tried adding an image to the "image" attribute of a "gallery" node. The attribute is an object relation. When in edit mode of the gallery object i can search for the image, but what should i do then?

Marco
http://www.hyperroad-design.com

André R.

Wednesday 11 October 2006 1:51:32 pm

Hi Marco.

ObjectSearch uses ez search, so you'll have to change the ini settings just as normal serach.
The thing that differs objectSearch from normal search is that it is ajaxed, attribute based and faster.

Browse: noticed it, upload the fix tomorrow.
Edit: fixed in 0.55

Drag&drop: this only works on objectRelation and ObjectRelationslist set to browse mode (not dropp down and so on), have added (updated tomorrow) so that the the ObjectSearch box don't apear in edit mode unless such boxes are present.
Edit: ObjectSearch is hidden in 0.55 if no objectrelation with browse methode is present on the edit page.

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

Kristof Coomans

Thursday 12 October 2006 12:15:21 am

Hi André

I didn't test your extension yet, but it seems to have some nice features.

Is jaxx easily extendable with other server side stuff (from other extensions), like xajax is?

independent eZ Publish developer and service provider | http://blog.coomanskristof.be | http://ezpedia.org

André R.

Thursday 12 October 2006 7:13:02 am

jaxx has nothing to do with the server, all server work is done by modules.
I have to test your hello world example to se what benefit xajax gives you.

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

Kristof Coomans

Thursday 12 October 2006 8:44:27 am

I actually meant ezjaxx (the extension) instead of jaxx (the javascript library).

So it's an ajax post or get request to a module view which returns some content (xml or json like) when necessary, leaving the response processing to the caller?

independent eZ Publish developer and service provider | http://blog.coomanskristof.be | http://ezpedia.org

André R.

Thursday 12 October 2006 11:24:46 am

For now its xhtml output that is injected right into the page element, but xml / json responses are also possible. But then you'll need more code on the clientside.

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

André R.

Thursday 26 October 2006 2:45:57 am

Hi, eZjaxx now supports 3.7 and 3.6.
I haven't tested in 3.6 yet, so please post any js / ez errors or warnings here.

Lot's of other changes to, so this is a call for testing !! :)

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

Paul Forsyth

Tuesday 07 November 2006 6:54:24 am

Hi André,

Keep going with this extension! I like the direction 0.8 is taking.

I had some troubles with a current site and 3.6 not showing the menu. I found the problem was actually the included pagelayout.tpl I have another extension with the admin pagelayout and this one was included first before the ezjaxx pagelayout.

I noted this extension issue a while back: http://issues.ez.no/7400. I find it useful in cases relating to overriding admin files easily but its a bit of a nightmare as sites scale up...! A better way to handle extension overrides is needed.

I think you need to document how this extension works and what a user needs to do to activate it correctly and what to watch out for. I havent figured out how to get keywords to work yet ;)

The object search is nice once it warms up though the output should be cleaned up a little to avoid the icons showing (maybe?).

Paul

André R.

Tuesday 07 November 2006 7:44:49 am

Yes, I know I override a bit too much :)

paglayout.tpl is overridden for several reasons:
* styles changes because of the changes to the content structure menu
* enabling the cache-block in the header

Other things that currently lives in paglayout.tpl, but should be placed other places before 1.0:
* init javascript for keywords and menu width
* hidden copy here div
* hidden keyword div
* while tesing some optimations I merged the path loop in content_structur_menu.tpl with the one in paqelayout.tpl, I almoste merged the one in page_toppath.tpl to as they are all outside cache-blocks.

As you see, a lot of things won't work or give unexpected result if other extensions are overriding paglayout.tpl.

A great way to debug javascript is by using the firebug extension for firefox, under options there you can enable xmlHttpRequest logging.
So you'll see what ajax request are being sent and what they return.

The keyword thing is set up by default to get keywords on content of same class type (jaxx.ini).
So you'll have to publish some content of same class type with some keywords filled in fields of keyword datatypes.

If it still don't work, I'll test 3.6 to see what's going on.

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

Paul Forsyth

Tuesday 07 November 2006 7:57:01 am

Yip, i think some docs about the essentials bits for pagelayout would be helpful, then it can be used in non-admin pagelayouts.

If you can move the non-essential pagelayout bits into other templates that would be nice :)

I did see firebug errors for the object search but they went away after i realised that i was using the wrong pagelayout.

Paul

Marco Zinn

Wednesday 08 November 2006 12:57:51 pm

Hi André,

nice to see you working on this extension. I think, it's got a lot of potiential, particularly in large sites, where the "static" structure menu gets too slow.

I couldnt get the current 0.8 version menu working in FF 1.5.07 or in IE 6.0. The [+] icon appeared in front of a parents folder, but clicking on it had no effect at all. No JS errors either. 'll try again later, probably with FF2.

Marco
http://www.hyperroad-design.com

André R.

Thursday 09 November 2006 1:56:36 am

Hi Marco,

could you test with 0.8a ? this might be related to a js error introduced in 0.8.
Tested in ff1.5.0.8, O9.1rc1 and ie6.

If it still don't work, what ez publish version do you test on ?

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

Anja Lundin

Friday 10 November 2006 3:16:11 am

Hi!
A very nice extension! Thank you!

I wonder if I have to do something special to get MaxDepth and MaxNodes (from contentstructuremenu.ini) to work in this extension? Or is there another way to limit the number of nodes in the menu?

/Anja

------------------------------------
Anja Lundin
Developer, Novitell AB
Sweden

www.novitell.se

André R.

Friday 10 November 2006 4:37:25 am

MaxNodes, MaxDepth and parent.sort_by is now supported in 0.81.
The menu does not support the following right now:
SortBy
ItemClickAction (Could someone give me a example usage for this ?)
PreloadClassIcons (is this needed ?)
AutoopenCurrentNode (does anyone disable this ?)
ChapterClasses[] (what is this for?)
CreateHereMenu

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

Matthew Carroll

Sunday 12 November 2006 1:25:42 pm

Hi

Just a quick note to anyone else who - like me - makes a lot of use of the xajax extensions, specifically xajax-classattributes... they seem to play happily together without any problems. I just added the xajax javascript block to extension/ezjaxx/design/admin/templates/pagelayout.tpl and now I have ezjaxx csm and xajax classattributes running together.

...of course it would be great to see these merge and grow into one all-powerful ajax overlord extension :-D

Matthew

http://carroll.org.uk

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