AvailableActions

< Troubleshooting | Documentation Index | AuthUser >

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.

PmWiki Actions

See also site page actions.

?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 FontSize('0.846', $m[1])

?action=browse
display the specified page (default action if no ?action= is present)

?action=crypt
displays a form for generating hashed passwords out of clear text for usage in your config.php

?action=diff
show a change history of the specified page, see page history FontSize('0.846', $m[1])

?action=download&upname=file.ext
retrieve the page's attachment named file.ext, see $EnableDirectDownload

?action=edit
edit the specified page, see basic editing FontSize('0.846', $m[1])

?action=login
prompt visitor for username/password, by default using Site.AuthForm

?action=logout
remove author, password, and login information

?action=print
display the specified page using the skin specified by $ActionSkin['print']

?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 FontSize('0.846', $m[1]). Part of the core distribution but must be enabled by the administrator.

?action=search
displays searchbox on current page, see search FontSize('0.846', $m[1])
?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

?action=source
show page source

?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 FontSize('0.846', $m[1])

?action=upload
display a form to upload an attachment for the current group, see uploads FontSize('0.846', $m[1])


Query string parameters

?from=page name
use when a page is redirected

?n=page name
display page

?setprefs=SomeGroup.CustomPreferences
sets cookie to custom preferences page. See site preferences FontSize('0.846', $m[1])

Actions enabled by $EnableDiag

The following actions are available only if you set $EnableDiag = 1; in your configuration file. They can be used for debugging and should not be set in a production environment.

?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)
(see Custom Markup FontSize('0.846', $m[1])).
To see more than what ?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.

?action=phpinfo
displays the output of phpinfo() and exits. No page will be processed
  • doesn't make use of PmWiki's authorization mechanisms.

?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.


Actions enabled by PmWiki Scripts

?action=analyze
see Site Analyzer and Analyze Results

?action=approvesites
see Url approvals FontSize('0.846', $m[1])
  • doesn't make use of PmWiki's authorization mechanisms.


Actions enabled by Cookbook recipes

(more information about Custom Actions)

?action=admin
see Cookbook:UserAuth2 FontSize('0.846', $m[1])
?action=attachman
see Cookbook:Attachman FontSize('0.846', $m[1])
?action=backup
see Cookbook:BackupPages FontSize('0.846', $m[1])
?action=clearsky
see Cookbook:SearchCloud FontSize('0.846', $m[1])
?action=cm-dependencies
see Cookbook:CodeMirror FontSize('0.846', $m[1])
?action=comment
see Cookbook:CommentBox FontSize('0.846', $m[1])
?action=comments
see Cookbook:Comments FontSize('0.846', $m[1])
?action=comment-rss
see Cookbook:CommentDb FontSize('0.846', $m[1])
?action=convert
see Cookbook:ROEPatterns FontSize('0.846', $m[1])
?action=converttable
Cookbook:ConvertTable FontSize('0.846', $m[1])
?action=copy
see Cookbook:MovePage FontSize('0.846', $m[1])
?action=csv
see CSVAction? FontSize('0.846', $m[1])
?action=downloaddeleted
?action=delattach
?action=deldelattach
?action=fileinfo
?action=thumbnail
?action=undelattach
Cookbook:Attachtable FontSize('0.846', $m[1])
?action=delete
see Cookbook:DeleteAction FontSize('0.846', $m[1])
?action=discuss
see Cookbook:DiscussionTab FontSize('0.846', $m[1])
?action=downloadman
see Cookbook:DownloadManager FontSize('0.846', $m[1])
?action=expirediff
see Cookbook:ExpireDiff FontSize('0.846', $m[1])
?action=import
see Cookbook:ImportText FontSize('0.846', $m[1])
?action=lang
see Cookbook:MultiLanguageViews FontSize('0.846', $m[1])
?action=setlang
see Cookbook:MultiLanguageViews FontSize('0.846', $m[1])
?action=links
see Cookbook:RenamePage FontSize('0.846', $m[1])
?action=move
see Cookbook:MovePage FontSize('0.846', $m[1])
?action=pageindex
see Cookbook:ListCategories FontSize('0.846', $m[1])
?action=PageUrl
see Cookbook:CommentBoxPlus FontSize('0.846', $m[1])
?action=pdf
see Cookbook:GeneratePDF FontSize('0.846', $m[1]) or Cookbook:PmWiki2PDF FontSize('0.846', $m[1])
?action=postupload2
see Cookbook:UploadForm FontSize('0.846', $m[1])
?action=ppdonate
see Cookbook:PPDonate - FontSize('0.846', $m[1])
?action=publish
see Cookbook:PublishPDF FontSize('0.846', $m[1])
?action=purgeqns
see Cookbook:ASCIIMath FontSize('0.846', $m[1])
?action=pwchange
see Cookbook:UserAuth2 FontSize('0.846', $m[1])
?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 FontSize('0.846', $m[1])
see Cookbook:Mini FontSize('0.846', $m[1])
?action=recipecheck
see Cookbook:RecipeCheck FontSize('0.846', $m[1])
?action=regen
see Cookbook:PageRegenerate FontSize('0.846', $m[1])
?action=reindex
see Cookbook:Reindex FontSize('0.846', $m[1])
?action=rename
?action=links
see Cookbook:RenamePage FontSize('0.846', $m[1])
?action=share
?action=unshare
see Cookbook:SharedPages FontSize('0.846', $m[1])
?action=sitemapaddgroups
?action=sitemapupdate
see Cookbook:Sitemapper FontSize('0.846', $m[1])
?action=totalcounter
see Cookbook:TotalCounter FontSize('0.846', $m[1])
?action=trash
?action=untrash
see Cookbook:Trash FontSize('0.846', $m[1])
?action=webadmin
see Cookbook:WebAdmin FontSize('0.846', $m[1])
?action=zap
see Cookbook:ZAP FontSize('0.846', $m[1])


Query string parameters enabled by Cookbook recipes

?color=colorscheme

:?setcolor=colorscheme

?skintheme=theme
?setskintheme=theme
see Cookbook:ChoiceColorChanger FontSize('0.846', $m[1])
?skin=skinname
?setskin=skinname
see SkinChange FontSize('0.846', $m[1])

Custom actions

< Troubleshooting | Documentation Index | AuthUser >


This page may have a more recent version on pmwiki.org: PmWiki:AvailableActions, and a talk page: PmWiki:AvailableActions-Talk.