Ezoe 5 doesnt store xml block content on frontpage object

Author Message

Luis Micunco

Wednesday 15 July 2009 1:23:00 am

Hi.
I just created a new "XML Block" attribute for the default "frontpage" content class.
The problem is that it doesnt store any content when publish a new object.

I get a javascript error when publishing the node:

ez.array.forEach is not a function
eZOeCleanUpEmbedTags("ContentObjectAttribute_data_text_1174", "<p>Lorem ipsum dolor sit amet.<br></p>", body#tinymce.mceContentBody)esl-ES (línea 851)
_init()("save_callback")tiny_mce.js (línea 1)
_init()()tiny_mce.js (línea 1)
_init()()tiny_mce.js (línea 1)
_init()(Object save=true)tiny_mce.js (línea 1)
_init()(Object save=true)tiny_mce.js (línea 1)
_init()()tiny_mce.js (línea 1)
_init()()tiny_mce.js (línea 1)
u()tiny_mce.js (línea 1)
_init()()

ez.array.forEach( body.getElementsByTagName('div'), function( node ){

After submit, the content is not stored.
It happens only in "frontpage" content class objects. Everything works fine on Folders, Articles and so on.

If "disabled editor" works fine too in "frontpage" content class objects and the xml content is stored.

Im using:
Ezpublish 4.1.2
Ezflow package default installed Ezoe 5.0.2

I hope someone reply.
Thanks everyone.

André R.

Wednesday 15 July 2009 1:49:19 am

Its because flow uses a very old version of 'ez_core.js', I thought it was replaced entirely with yui by now but seems to still be used somewhere.

Patch:

Index: ezoe/design/standard/templates/content/datatype/edit/ezxmltext_ezoe.tpl
===================================================================
--- ezoe/design/standard/templates/content/datatype/edit/ezxmltext_ezoe.tpl	(revision 22)
+++ ezoe/design/standard/templates/content/datatype/edit/ezxmltext_ezoe.tpl	(working copy)
@@ -59,7 +59,7 @@
     <script type="text/javascript">
     <!--
     
-    if ( window.ez === undefined ) document.write('<script type="text/javascript" src={"javascript/ezoe/ez_core.js"|ezdesign}><\/script>');
+    if ( window.ez === undefined || ez.version < 0.95 ) document.write('<script type="text/javascript" src={"javascript/ezoe/ez_core.js"|ezdesign}><\/script>');
 
     var eZOeAttributeSettings, eZOeGlobalSettings = {ldelim}
         mode : "none",

Alternatively download "design/standard/templates/content/datatype/edit/ezxmltext_ezoe.tpl" from svn* in 20-30 minutes, the fix will be there by then.

* http://svn.projects.ez.no/ezoe/stable/5.0/ezoe/

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

Luis Micunco

Wednesday 15 July 2009 2:09:43 am

Thanks a lot André R. it works fine now.

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