Item9065: Problems with ZonePlugin and UploadPlugin in NatEdit. (ADDTOHEAD)

pencil
Priority: Urgent
Current State: Closed
Released In: n/a
Target Release: n/a
Applies To: Extension
Component: UploadPlugin
Branches:
Reported By: OliverSchaub
Waiting For: Main.MichaelDaum
Last Change By: OliverSchaub
Uploading an Attachment from within NatEdit did actually work, but resulted in a white-page.

Changing ADDTOHEAD to ADDTOZONE in "uploadplugin.tmpl" solved the issue for us:

Old values:

%TMPL:DEF{"uploadjavascript"}%%ADDTOHEAD{
  "UPLOADPLUGIN::JAVASCRIPT"
  text="......"
  requires="JQUERYPLUGIN::FOSWIKI, UPLOADPLUGIN::CSS"
}%%TMPL:END%
%TMPL:DEF{"uploadcss"}%%ADDTOHEAD{
  "UPLOADPLUGIN::CSS"
  text="....."
  requires="JQUERYPLUGIN::FOSWIKI"
}%%TMPL:END%

New values:
%TMPL:DEF{"uploadjavascript"}%%ADDTOZONE{
  "body"
  tag="UPLOADPLUGIN::JAVASCRIPT"
  text="<script..........</script>"
  requires="JQUERYPLUGIN::FOSWIKI, UPLOADPLUGIN::CSS"
}%%TMPL:END%
%TMPL:DEF{"uploadcss"}%%ADDTOZONE{
  "head"
  tag="UPLOADPLUGIN::CSS"
  text="<style.......................</style>"
  requires="JQUERYPLUGIN::FOSWIKI"
}%%TMPL:END%

-- OliverSchaub - 26 May 2010

This bug breaks the default UploadPlugin in my fresh FW 1.1.0 install: Less and More buttons don't work until the above values are changed.

-- HolstenerLiesel - 19 Oct 2010

The fix should now use ADDTOZONE{"script" rather than body.

Alternatively, you can maintain compatibility for plugins targeting 1.0 by enabling {MergeHeadAndScriptZones} in configure.

-- PaulHarvey - 19 Oct 2010
 

ItemTemplate edit

Summary Problems with ZonePlugin and UploadPlugin in NatEdit. (ADDTOHEAD)
ReportedBy OliverSchaub
Codebase 1.1.0, 1.0.9
SVN Range
AppliesTo Extension
Component UploadPlugin
Priority Urgent
CurrentState Closed
WaitingFor MichaelDaum
Checkins
TargetRelease n/a
ReleasedIn n/a
CheckinsOnBranches
trunkCheckins
Release01x01Checkins
Topic revision: r4 - 20 Sep 2013, OliverSchaub
The copyright of the content on this website is held by the contributing authors, except where stated elsewhere. See Copyright Statement. Creative Commons License    Legal Imprint    Privacy Policy