Skip to content

Commit

Permalink
Item1507: This thing is using AttachContentPlugin by trying to redire…
Browse files Browse the repository at this point in the history
…ct the browser to /bin/save, which results in a GET on the save script which is not allowed.

git-svn-id: http://svn.foswiki.org/trunk/PersonalInfoAddOn@6154 0b4bb1d4-4e5a-0410-9cc4-b2b747904278
  • Loading branch information
PaulHarvey authored and PaulHarvey committed Jan 26, 2010
1 parent 0636e0c commit 6cca29b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@
%TEXT% %TMPL:END%

%{"make sure that the PersonalInfo topic will be saved on normal edit"}%
%TMPL:DEF{"edit_topic_link"}%<span class="patternButton"><a href='%SCRIPTURL{"edit"}%/%WEB%/%TOPIC%?t=%GMTIME{"$epoch"}%%TMPL:P{"url_param_editaction"}%;redirectto=%SCRIPTURL{save}%/%WEB%/PersonalInfo%3Fredirectto=%TOPIC%' rel='nofollow' %MAKETEXT{"title='Edit this topic text' accesskey='e'>&Edit"}%</a></span>%TMPL:END%
%{ -- this is all disabled, because you must now POST to the save script in Foswiki.
TMPL:DEF{"edit_topic_link"}<span class="patternButton"><a href='%SCRIPTURL{"edit"}%/%WEB%/%TOPIC%?t=%GMTIME{"$epoch"}%%TMPL:P{"url_param_editaction"}%;redirectto=%SCRIPTURL{save}%/%WEB%/PersonalInfo%3Fredirectto=%TOPIC%' rel='nofollow' %MAKETEXT{"title='Edit this topic text' accesskey='e'>&Edit"}%</a></span>TMPL:END
}%

%TMPL:DEF{"templatestyle"}%%INCLUDE{"PersonalInfo" section="personalInfoStyle"}%%TMPL:END%
%TMPL:DEF{"templatestyle"}%%INCLUDE{"PersonalInfo" section="personalInfoStyle"}%%TMPL:END%
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ This current topic and PersonalInfoModules work in tandem:
* PersonalInfo contains customizations for your site

<div class="foswikiHelp">
%IF{"context AttachContentPluginEnabled" then='If you are using =directSearch= you may *<a href="%SCRIPTURL{save}%/%WEB%/%TOPIC%?action_save=1">update the directSearch javascript file now</a>* (by saving this topic the [[%ATTACHURL%/directSearch.js][attachment]] will be updated)' else='!AttachContentPlugin is not enabled.%BR%To read javascript more efficiently in this section, please install and enable Foswiki:Extensions/AttachContentPlugin.'}%
%IF{"context AttachContentPluginEnabled" then='If you are using =directSearch= you may *<form method="post" action="%SCRIPTURLPATH{"save"}%/%WEB%/%TOPIC%"><input type="hidden" name="action_save" value="1"/><input type="submit" class="foswikiButton" value="update"/></form> the directSearch javascript file now</a>* (by saving this topic the [[%ATTACHURL%/directSearch.js][attachment]] will be updated)' else='!AttachContentPlugin is not enabled.%BR%To read javascript more efficiently in this section, please install and enable Foswiki:Extensions/AttachContentPlugin.'}%
</div>

---++ How can I customize a section?
Expand Down

0 comments on commit 6cca29b

Please sign in to comment.