AvailableActions
⚠ [[#trailstart]]
Page actions are applied to wiki pages, as a query string appended to the URL. Security can be applied to all default actions, and script actions with one exception, but not diag actions, through the use of passwords.
Also documented are all other URL queries.
NOTE: All actions will be disabled if the following is set:
$EnableActions = 0; include('pmwiki.php');
This will initialize PmWiki (along with any configuration/customizations
that are being made, e.g. from local/config.php
), but won't actually
perform any actions. The caller can then call the desired action
or other functions as desired. This is available from Version 2.2.0-beta22 on up.
⚠ [[#defaultactions]]
PmWiki Actions
See also site page actions.
⚠ [[#attr]]
- ?action=attr
- displays dialog for setting/changing password of the specified page or group of pages, see passwords, see also
$EnablePostAttrClearSession
if you do not want to have the session cleared after validating change General use of passwords and login
⚠ [[#browse]]
- ?action=browse
- display the specified page (default action if no
?action=
is present)
⚠ [[#crypt]]
- ?action=crypt
- displays a form for generating hashed passwords out of clear text for usage in your config.php
⚠ [[#diff]]
- ?action=diff
- show a change history of the specified page, see page history History of previous edits to a page
⚠ [[#download]]
- ?action=download&upname=file.ext
- retrieve the page's attachment named file.ext, see
$EnableDirectDownload
⚠ [[#edit]]
- ?action=edit
- edit the specified page, see basic editing PmWiki's basic edit syntax
⚠ [[#login]]
- ?action=login
- prompt visitor for username/password, by default using Site.AuthForm
⚠ [[#logout]]
- ?action=logout
- remove author, password, and login information
⚠ [[#print]]
- ?action=print
- display the specified page using the skin specified by
$ActionSkin
['print']
⚠ [[#refcount]]
- ?action=refcount
- bring up the reference count form, which allows the user to generate a list of links (all, missing, existing or orphaned) in or from specified groups. See Ref Count Link references counts on pages . Part of the core distribution but must be enabled by the administrator.
⚠ [[#search]]
- ?action=search
- displays searchbox on current page, see search Targeting and customizing search results
- ?action=search&q=searchterm
- performs search with searchterm and displays results on current page
- ?action=search&q=link=pagename
- performs backlinks search with pagename and displays results on current page
⚠ [[#source]]
- ?action=source
- show page source
⚠ [[#template]]
- ?action=template
- creates a link that will open the NewPage using the contents of OldPage, see Cookbook:Edit Templates
⚠ [[#feed]]
- ?action=atom
- ?action=rdf
- ?action=rss
- ?action=dc
- If web feeds are enabled, returns a syndication feed based on the contents of the page or other options provided by the url, see web feeds Web feed notification of changes
⚠ [[#upload]]
- ?action=upload
- display a form to upload an attachment for the current group, see uploads
⚠ [[#defaultactionsend]]
⚠ [[#querystrings]]
Query string parameters
⚠ [[#from]]
- ?from=page name
- use when a page is redirected
⚠ [[#n]]
- ?n=page name
- display page
⚠ [[#setprefs]]
- ?setprefs=SomeGroup.CustomPreferences
- sets cookie to custom preferences page. See site preferences Customisable browser setting preferences: Access keys, edit form
⚠ [[#enablediag]]
Actions enabled by $EnableDiag
⚠ [[#BEGENABLEDIAG]]
The following actions are available only if you set
in your configuration file. They can be used for debugging and should not be set in a production environment.
$EnableDiag
= 1;
- ?action=ruleset
- displays a list of all markups in 4 columns:
- column 1 = markup-name (1. parameter of
markup()
) - column 2 = when will rule apply (2. parameter of
markup()
) - column 3 = PmWiki's internal sort key (derived from #2)
- column 4 = Debug backtrace information for potentially incompatible rules (filename, line number, pattern)
- column 1 = markup-name (1. parameter of
?action=ruleset
gives you, apply the Cookbook:MarkupRulesetDebugging recipe: it can also show the pattern and the replacement strings.
- doesn't make use of PmWiki's authorization mechanisms.
⚠ [[#phpinfo]]
- ?action=phpinfo
- displays the output of
phpinfo()
and exits. No page will be processed- doesn't make use of PmWiki's authorization mechanisms.
⚠ [[#diag]]
- ?action=diag
- displays a dump of all global vars and exits. No page will be processed
- doesn't make use of PmWiki's authorization mechanisms.
⚠ [[#ENDENABLEDIAG]]
⚠ [[#scriptactions]]
Actions enabled by PmWiki Scripts
⚠ [[#analyse]]
- ?action=analyze
- see Site Analyzer and Analyze Results
⚠ [[#approvesites]]
- ?action=approvesites
- see Url approvals Require approval of Url links
- doesn't make use of PmWiki's authorization mechanisms.
⚠ [[#analyseend]]
⚠ [[#cookbook]]
Actions enabled by Cookbook recipes
(more information about Custom Actions)
- ?action=admin
- see Cookbook:UserAuth2
- ?action=attachman
- see Cookbook:Attachman
- ?action=backup
- see Cookbook:BackupPages
- ?action=clearsky
- see Cookbook:SearchCloud
- ?action=cm-dependencies
- see Cookbook:CodeMirror
- ?action=comment
- see Cookbook:CommentBox
- ?action=comments
- see Cookbook:Comments
- ?action=comment-rss
- see Cookbook:CommentDb
- ?action=convert
- see Cookbook:ROEPatterns
- ?action=converttable
- Cookbook:ConvertTable
- ?action=copy
- see Cookbook:MovePage
- ?action=csv
- see Cookbook:CSVAction
- ?action=downloaddeleted
- ?action=delattach
- ?action=deldelattach
- ?action=fileinfo
- ?action=thumbnail
- ?action=undelattach
- Cookbook:Attachtable
- ?action=delete
- see Cookbook:DeletePage
- ?action=discuss
- see Cookbook:DiscussionTab
- ?action=downloadman
- see Cookbook:DownloadManager
- ?action=expirediff
- see Cookbook:ExpireDiff
- ?action=hidediff
- see Cookbook:HideDiff
- ?action=import
- see Cookbook:ImportText
- ?action=lang
- see Cookbook:MultiLanguageViews
- ?action=setlang
- see Cookbook:MultiLanguageViews
- ?action=links
- see Cookbook:RenamePage
- ?action=lockflipbox
- see Cookbook:Flipbox
- ?action=unlockflipbox
- see Cookbook:Flipbox
- ?action=move
- see Cookbook:MovePage
- ?action=pageindex
- see Cookbook:ListCategories
- ?action=PageUrl
- see Cookbook:CommentBoxPlus
- ?action=pdf
- see Cookbook:GeneratePDF
- or Cookbook:PmWiki2PDF
- ?action=postupload2
- see Cookbook:UploadForm
- ?action=ppdonate
- see Cookbook:PPDonate -
- ?action=publish
- see Cookbook:PublishPDF
- ?action=purgeqns
- see Cookbook:ASCIIMath
- ?action=pwchange
- see Cookbook:UserAuth2
- ?action=imgtpl
- (the imgtpl action is called automatically and should not be called by a link in a wiki page)
- ?action=createthumb
- (the createthumb action is called automatically and should not be called by a link in a wiki page)
- ?action=mini
- (this action is called automatically and should not be called by a link in a wiki page)
- ?action=purgethumbs
- see Cookbook:ThumbList
see Cookbook:Mini - ?action=recipecheck
- see Cookbook:RecipeCheck
- ?action=regen
- see Cookbook:PageRegenerate
- ?action=reindex
- see Cookbook:Reindex
- ?action=reindexcat
- See Cookbook:ReindexCategories
- ?action=rename
- ?action=links
- see Cookbook:RenamePage
- ?action=rmpi
- see Test.PageIndex?
- ?action=share
- ?action=unshare
- see Cookbook:SharedPages
- ?action=sitemap
- see Cookbook:GoogleSiteMap
- ?action=sitemapaddgroups
- ?action=sitemapupdate
- see Cookbook:Sitemapper
- ?action=totalcounter
- see Cookbook:TotalCounter
- ?action=trash
- ?action=untrash
- see Cookbook:Trash
- ?action=webadmin
- see Cookbook:WebAdmin
- ?action=zap
- see Cookbook:ZAP
⚠ [[#cookbookend]]
⚠ [[#cookbookqueryskins]]
Query string parameters enabled by Cookbook recipes
- ?color=colorscheme
:?setcolor=colorscheme
- ?skintheme=theme
- ?setskintheme=theme
- see Cookbook:ChoiceColorChanger
- ?skin=skinname
- ?setskin=skinname
- see SkinChange
Custom actions
- See CustomActions.
⚠ [[#trailstart]]
⚠ [[#trailend]]
This page may have a more recent version on pmwiki.org: PmWiki:AvailableActions, and a talk page: PmWiki:AvailableActions-Talk.
Copyright (c) Coletivo Saravá: desde que não mencionado em contrário, este conteúdo é distribuído de acordo com a Licença de Manipulação de Informações do Coletivo Saravá.