Forums / Setup & design / Error: Load jquery first?

Error: Load jquery first?

Author Message

Olaf Fichtner

Thursday 20 January 2011 10:51:28 pm

I created a custom template for article-like content. So far everything went well, but when I create a translation in the frontend, I get two notification windows, the first saying "undefined", the second "load jqery first". After that, an XML block is without OE, just plain text showing html tags inside.

I have not found anyone else with this kind of problem and it would not inconvenience me very much, but since I would like to also let other people edit content from the frontend, is there a way to resolve this?

André R.

Saturday 22 January 2011 1:12:47 pm

is this webin/flow?

What is version of eZ Publish / eZ JsCore / eZ Webin ? (it's enough with eZ Publish version if you use bundled extensions)

This typically happens when ezscript_load is not called in your page_head or included templates( it is by default in admin2 and webin in 4.4+, in versions lower then 4.4 ezjscore overrides the specific template in webin so unless you override the same template it should be called automatically. )

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

Olaf Fichtner

Saturday 22 January 2011 5:12:47 pm

Ah, sorry, I forgot the "details" again: This is 4.4 and I use webin. I copied the article template, deleted things I did not need and then added my own. I also did touch page_header, but not page_head. So you are saying I probably deleted a call in the header?

Olaf Fichtner

Sunday 23 January 2011 11:22:09 pm

OK, fixed it! A quick grep showed me the file (page_head_script.tpl) that must have gone missing indirectly when I modified page_header.tpl. So I just included it directly and editing in the frontend is back to normal.

Thanks!