Item9065: Problems with ZonePlugin and UploadPlugin in NatEdit. (ADDTOHEAD)
Priority: Urgent
Current State: Closed
Released In: n/a
Target Release: n/a
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