ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

v2.0.2pb01 Unable to specify whether to load jquery or not when calling the standalone entry form

April 19, 2010 1:59am

Subscribe [4]
  • #1 / Apr 19, 2010 1:59am

    Badlands

    17 posts

    It seems that in modules > channels > mod.channel_standalone.php on line 427 where the script calls the frontend_filebrowser method of the filemanager class, it passes it a second parameter of true which determines whether the SAEF calls jquery.

    However this is hard coded in the channel module and should be a parameter of {exp:channels:entry_form} because I need to load jquery in the head before certain other scripts are loaded, calling it this second time causes a conflict and my scripts stop work.

  • #2 / Apr 19, 2010 4:58pm

    Robin Sowell

    13255 posts

    What version are you currently running?  It looks like this bug, which is marked as resolved in the latest.  But the SAEF is being tweaked as I speak, so it’s possible something was fixed and is now broken.

    If the problem persists on the latest for you?  I’d enter a a new PB bug, just so we’re sure to double check on the latest code.

  • #3 / Apr 19, 2010 6:56pm

    Badlands

    17 posts

    Hi Robin, Thanks for your help, we’re using v2.0.2pb01. I don’t believe the bug you linked me to is similar, as I’m not using {exp:jquery:script_tag}

    This seems to me that the functionality to specify whether to load jquery along with the SAEF has been created (ie, this can be set by a parameter) but not finished (ie, the parameter can not be set by the exp:channel:entry_form tags.

    So instead of mod_channel_standalone line 427 calling

    $js_includes = $this->EE->filemanager->frontend_filebrowser($endpoint, TRUE);

    (the second parameter is the one that specifies the jquery load in filemanager->frontend_filebrowser

    it could actually be something like

    $js_includes = $this->EE->filemanager->frontend_filebrowser($endpoint, $this->EE->TMPL->fetch_param(‘load_script’));

    So you could call from the template {exp:channel:entry_form load_script="false"}

    Does this make more sense?

  • #4 / Apr 20, 2010 12:48pm

    Robin Sowell

    13255 posts

    It does indeed- and I just double checked w/Greg who’s tweaking it.  Looks like the parameter is included (and working) in the next release version!

  • #5 / May 06, 2010 10:16pm

    Badlands

    17 posts

    Hi, thanks we’ve upgraded to the latest build. In the docs, the list of parameters for Standalone Entry Form http://expressionengine.com/public_beta/docs/modules/channel/entry_form.html

    Specify include_jquery=“no”,
    But further down the page

    http://expressionengine.com/public_beta/docs/modules/channel/entry_form.html#par_include_jquery

    The parameter is par_include_jquery. I’m not sure which one is correct because neither seem to be fixing my problem. My jquery functions are still not working on my SAEF page.

  • #6 / May 07, 2010 3:16pm

    Robin Sowell

    13255 posts

    Argh.  Yes, I just double checked- it should be

    include_jquery="no"

    It will default to ‘yes’.  That said- it should be working for you.  The js is fine if you take the saef tags out?  But if you put them in w/include_jquery=“no” it stops working?  Bleh- I’d ask to see it- but it won’t work w/out being logged in.

    Can you attach a text file w/your header in it- including your js.  Which- hopefully will not involve plugins I don’t have.  😉

  • #7 / Jul 10, 2010 9:09am

    iain

    317 posts

    I’m seeing no difference in the SAEF output regardless of what value is passed via the include_jquery parameter.

    {exp:channel:entry_form channel="news" include_jquery="no" use_live_url="no"}
    {/exp:channel:entry_form}

    Reporting the bug now :(

  • #8 / Jul 13, 2010 7:35pm

    Brandon Jones

    5500 posts

    Hi iain,

    As mentioned in the bug report, it looks like this is expected behavior. However please feel free to submit a feature request. Going to go ahead and close this thread for now.

  • #9 / Jul 13, 2010 7:35pm

    Brandon Jones

    5500 posts

    😊

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases