Forums / Developer / xajax developers... / Comment49795

Author Topic

André R.

Wednesday 02 July 2008 12:43:23 am

Comment49795

If you have Online Editor 5.0 installed, you can reuse it's ajax views.

try:
<system_url>/ezoe/load/<object_id>
<system_url>/ezoe/load/eznode_<node_id>

You can also specify witch datamap attribute to load as second parameter, like:
<system_url>/ezoe/load/<object_id>/image

If you instead want to load all the children of a node you can use expand:
<system_url>/ezoe/expand/<node_id>/<offset>/<limit>
(offset and limit are optional)

The code for the views, load (json):
http://svn.ez.no/svn/extensions/eztinymce/trunk/ezoe/modules/ezoe/load.php

Expand (json):
http://svn.ez.no/svn/extensions/eztinymce/trunk/ezoe/modules/ezoe/expand.php

Search (json):
http://svn.ez.no/svn/extensions/eztinymce/trunk/ezoe/modules/ezoe/search.php

Embed View (xhtml using the templates normally used):
http://svn.ez.no/svn/extensions/eztinymce/trunk/ezoe/modules/ezoe/embed_view.php

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