Forums / Developer / Integration of Ezmultiupload with ezjscore in the front

"Please Note:
  • At the specific request of Ibexa we are changing this projects name to "Exponential" or "Exponential (CMS)" effective as of August, 11th 2025.
  • This project is not associated with the original eZ Publish software or its original developer, eZ Systems or Ibexa".

Integration of Ezmultiupload with ezjscore in the front

Author Message

cimo aichouni

Tuesday 03 May 2011 2:49:12 am

Hello,

I am newbie in Exponential, and I do not know if the appropriate place to ask these questions..

I discovered the module ezmultiupload and I would like to use it for my website without toolbar ezwebin but directly on the site by overriding the template: extension/ezmultiupload/design/standard/templates/parts/websitetoolbar/ezmultiupload.tpl . in my website design.

And an ajax call for ezmultiupload module using /ezjscore/run/ezmultiupload/upload/',$parent_node.node_id .

But it does not work. I just see the titles and buttons of the ezmultiupload interface But no actions of ezmultiupload.js.

Here is my new ezmultiupload.tpl in my desing extension:

{ezscript_require( 'ezjsc::yui2' )}

{ezcss_require( 'ezmultiupload.css' )}

<div id="ezmultiupload" class="ezmultiupload"> 

 Waiting for ezjscore ajax call... (See FAQ if you get script error and / or nothing happens! hint: permissions )</div>

<script type="text/javascript">

{literal}

<!-- // This function is executed when all YUI 2.x components are available

YUILoader.onSuccess = function() { {/literal}   

// A ezjscore server call   

   var serverCall = "{concat('/ezjscore/run/ezmultiupload/upload/',68)|ezurl( 'no' )}"; 

   var ezmultiuploadpath = "{'javascript/ezmultiupload.js'|ezdesign( 'no' )}";

{literal}   

// POST parameters send along with XHR request   

var data = "arg1=hi!";

 

    YAHOO.util.Connect.asyncRequest( "POST", serverCall,  { 

      success: function (o)         {       YUILoader.addModule({     

              name: 'ezmultiupload',                 

              type: 'js',                   

              fullpath: 'ezmultiuploadpath',     

              requires: ["utilities", "json", "uploader"],                   

              after: ["uploader"],                   

              skinnable: false                });               

if ( o.responseText !== undefined )          

  { YAHOO.util.Dom.get("ezmultiupload").innerHTML = o.responseText; }}}, data );}
// Load DOM and Connection components

YUILoader.require(["dom","connection"]);
// Insert YUI 2.x components on page

YUILoader.insert();{/literal}//-->

</script>

I do the inlude of this template in some div.
I think that it will be helpful for a lot of developers whom want to use this extension in front office.

Thanks for your help.

Regards

Heath

Tuesday 03 May 2011 7:46:48 am

Hello cimo,

Please do not (double) post the same message twice in our forums.

Regards,

Heath

7x | https://se7enx.com/
Brookins Consulting | https://brookinsconsulting.com/
Certified | http://web.archive.org/web/201012...th.ez.no/certification/verify/380350
Solutions | https://projects.exponential.earth/users/community/brookins-consulting
eZpedia community documentation project | http://ezpedia.se7enx.com

cimo aichouni

Tuesday 03 May 2011 9:05:44 am

I know i m so sorry ;).

Is my first time here i dont know yet all rules....

Sorry again.

Regards