Difference: TWikiScripts (8 vs. 9)

Revision 92010-05-06 - TWikiContributor

Line: 1 to 1
 

TWiki CGI and Command Line Scripts

Line: 69 to 79
 
anyname Any parameter can passed to the new topic; if the template topic contains %URLPARAM{"anyname"}%, it will be replaced by its value  
breaklock If set, any lease conflicts will be ignored, and the edit will proceed even if someone is already editing the topic.  
redirectto If the user continues from edit to save, and if the save (or cancels the edit) process is successful, save will redirect to this topic or URL. The parameter value can be a TopicName, a Web.TopicName, or a URL.
Note: Redirect to a URL only works if it is enabled in configure (Miscellaneous {AllowRedirectUrl}).
 
Added:
>
>
t Provide a unique URL each time a topic is edited, typically specifying parameter t=%SERVERTIME{$epoch}% in an edit link. This is done to prevent browsers from caching an edit session, which could result in editing outdated content. The parameter name and value is arbitrary, but must be unique each time.  
  Form field values are passed in parameters named 'field' - for example, if I have a field Status the parameter name is Status.
  1. The first sequence of ten or more X characters in the topic name will be converted on save to a number such that the resulting topic name is unique in the target web.
Line: 98 to 113
 
baseweb Name of the web to copy to create the new web ''
webbgcolor value for WEBBGCOLOR ''
sitemapwhat Value for SITEMAPWHAT ''
Deleted:
<
<
sitemapuseto Value for SITEMAPUSETO ''
 
nosearchall Value for NOSEARCHALL ''

action=renameweb

Line: 321 to 351
 
webs comma-separated list of webs to run stats on all accessible webs
logdate YYYYMM to generate statistics for current month
Changed:
<
<
for example:
>
>
For example:
 
  1. from browser http://twiki.npl.illinois.edu/bin/statistics updates all user webs
  2. from browser http://twiki.npl.illinois.edu/bin/statistics?webs=TWiki,Main,Sandbox updates TWiki,Main,Sandbox
  3. from browser http://twiki.npl.illinois.edu/bin/statistics/TWiki updates TWiki
Line: 329 to 359
 
  1. from command line twiki/bin/statistics -webs=TWiki,Main,Sandbox updates TWiki,Main,Sandbox
  2. from command line twiki/bin/statistics TWiki.WebHome updates TWiki
Changed:
<
<
see TWikiSiteTools#WebStatistics_site_statistics for updating statistics using cron.
>
>
See TWikiSiteTools#WebStatistics_site_statistics for updating statistics using cron.
 

upload

Added:
>
>
 Uploads an attachment to a topic. The HTTP request is expected to be in multipart/form-data format.
Added:
>
>
 
Parameter Description Default
<-- -->
Sorted ascending
hidefile if defined, will not show file in attachment table  
filepath local (client) path name of the file being uploaded. This is used to look up the data for the file in the HTTP query.  
Line: 394 to 431
  Note: The script has to be run by a user who can write files created by the webserver user.
Deleted:
<
<
 Related Topics: AdminDocumentationCategory, DeveloperDocumentationCategory
Added:
>
>
-- Contributors: TWiki:Main/ArthurClemens, TWiki:Main/CrawfordCurrie, TWiki:Main/MichaelDaum, TWiki:Main/PeterThoeny, TWiki:Main/RafaelAlvarez, TWiki:Main/SvenDowideit, TWiki:Main/ThomasWeigert, TWiki:Main/WillNorris
 
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 1999-2019 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback
Note: Please contribute updates to this topic on TWiki.org at TWiki:TWiki.TWikiScripts.