This site has been archived. To learn more about our current products Ibexa Content, Ibexa Experience, Ibexa Commerce head over to the Ibexa Developer Portal

eZ Community » Forums » Install & configuration » jQuery sub elements ez publish 4.4.
expandshrink

jQuery sub elements ez publish 4.4.

jQuery sub elements ez publish 4.4.

Thursday 09 February 2012 1:49:40 pm - 4 replies

regards
Working with ez publish 4.4 localhost with admin2, having no internet, are not the sub elements, and the TinyMCE toolbar, check the source code and saw this:

 
 
<<span class="start-tag">script</span><span class="attribute-name"> type</span>=<span class="attribute-value">"text/javascript" </span><span class="attribute-name">src</span><span>="</span><a href="view-source:http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js">http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js</a><span>" </span><span class="attribute-name">charset</span>=<span class="attribute-value">"utf-8"</span>></<span class="end-tag">script</span>><<span class="start-tag">script</span><span class="attribute-name"> type</span>=<span class="attribute-value">"text/javascript" </span><span class="attribute-name">src</span><span>="</span><a href="view-source:http://yui.yahooapis.com/2.8.1/build/yuiloader/yuiloader-min.js">http://yui.yahooapis.com/2.8.1/build/yuiloader/yuiloader-min.js</a><span>" </span><span class="attribute-name">charset</span>=<span class="attribute-value">"utf-8"</span>></<span class="end-tag">script</span>><<span class="start-tag">script</span><span class="attribute-name"> type</span>=<span class="attribute-value">"text/javascript" </span><span class="attribute-name">src</span><span>="</span><a href="view-source:http://yui.yahooapis.com/3.1.1/build/yui/yui-min.js">http://yui.yahooapis.com/3.1.1/build/yui/yui-min.js</a><span>" </span><span class="attribute-name">charset</span>=<span class="attribute-value">"utf-8"</span>></<span class="end-tag">script</span>><<span class="start-tag">script</span><span class="attribute-name"> type</span>=<span class="attribute-value">"text/javascript"</span>>

and download the js, but do not know where to change the url of the js, to run localhost.
please help

Thursday 09 February 2012 3:59:15 pm

Hi Edixon,

not sure what you want to do.

If I understand well, you can get jQuery based features working because you don't have internet on the client side. Right ? If it's the case, create a ezjscore.ini.append.php file in your settings/override folder and add this :

#?ini charset="utf-8"?
 
[eZJSCore]
LoadFromCDN=disabled

Then Ajax libraries should be loaded from your server instead of being linked to Google/Yahoo.

This has been the default value in the last versions, but I can remember that it was set to enabled in some old version of eZ Publish.

Modified on Thursday 09 February 2012 4:03:00 pm by Arnaud Lafon

Thursday 09 February 2012 4:30:00 pm

What I want is to work ez publish 4.4. local host, but the following js:
 

 

 

<a href="view-source:http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js">http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js</a><a href="view-source:http://yui.yahooapis.com/2.8.1/build/yuiloader/yuiloader-min.js">http://yui.yahooapis.com/2.8.1/build/yuiloader/yuiloader-min.js</a>

<a href="view-source:http://yui.yahooapis.com/3.1.1/build/yui/yui-min.js">http://yui.yahooapis.com/3.1.1/build/yui/yui-min.js</a>

loaded from internet, this prevents the sub items and see TinyMCE toolbar in the admin panel.
So I want to install the js in ez publish to not depend on internet.

Thursday 09 February 2012 5:47:42 pm

Alright, then my last post is what you should go for. These 2 js file are already packaged with eZ Publish since the solution is designed to work without depending on an internet access :

  • extension/ezjscore/design/standard/javascript/jquery...
  • extension/ezjscore/design/standard/javascript/lib/yui/...

Modified on Thursday 09 February 2012 5:48:01 pm by Arnaud Lafon

Thursday 09 February 2012 6:47:36 pm

Thanks for the help

expandshrink

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

36 542 Users on board!

Forums menu

Proudly Developed with from