|
TWiki CGI and Command Line Scripts |
|
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} ). |
|
|
|
> > |
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 .
- 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.
|
| Note: The manage script can only be called via http POST method for createweb renameweb , and deleteUserAccount .
action=createweb |
|
> > | |
|
Parameter |
Description |
Default |
newweb |
Name of the new web |
'' |
baseweb |
Name of the web to copy to create the new web |
'' |
webbgcolor |
value for WEBBGCOLOR |
'' |
sitemapwhat |
Value for SITEMAPWHAT |
'' |
|
|
< < |
sitemapuseto |
Value for SITEMAPUSETO |
'' |
|
|
nosearchall |
Value for NOSEARCHALL |
'' |
action=renameweb |
|
separator=", " |
Line separator between hits |
Newline "$n" |
statistics |
|
> > | |
| Refresh the WebStatistics topics in range of webs. |
|
> > | |
|
Parameter |
Description |
Default |
webs |
comma-separated list of webs to run stats on |
all accessible webs |
logdate |
YYYYMM to generate statistics for |
current month |
|
|
< < | for example: |
> > | For example: |
|
- from browser https://cds.kuhep.kreonet.net/wiki/twiki-6.1.0/bin/statistics updates all user webs
- from browser https://cds.kuhep.kreonet.net/wiki/twiki-6.1.0/bin/statistics?webs=TWiki,Main,Sandbox updates TWiki,Main,Sandbox
- from browser https://cds.kuhep.kreonet.net/wiki/twiki-6.1.0/bin/statistics/TWiki updates TWiki
|
|
- from command line twiki/bin/statistics -webs=TWiki,Main,Sandbox updates TWiki,Main,Sandbox
- from command line twiki/bin/statistics TWiki.WebHome updates TWiki
|
|
< < | see TWikiSiteTools#WebStatistics_site_statistics for updating statistics using cron. |
> > | See TWikiSiteTools#WebStatistics_site_statistics for updating statistics using cron. |
|
upload |
|
> > | |
| Uploads an attachment to a topic. The HTTP request is expected to be in multipart/form-data format. |
|
> > | |
|
Parameter |
Description |
Default |
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. |
|
|
|
Note: The script has to be run by a user who can write files created by the webserver user. |
|
< < | |
| Related Topics: AdminDocumentationCategory, DeveloperDocumentationCategory |
|
> > |
-- 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 |