Translations of this page?:

Action Modes aka. do Modes

List of possible action modes (may be incomplete yet) with their descriptions. These actions are usually caused by supplying an according ?do= parameter to the doku.php dispatcher. The knowledge of the current mode may be useful for making templates more dynamic or write action plugins. The current can be accessed via the global $ACT variable.

Page actions

Editing process

  • show: The default action, whenever no special mode is defined this one will be used. It just causes to render the current page.
  • edit: Loads the current page into the editor instead of rendering it
  • create: Creates a new page
  • source: View the page source (often used when editing is not allowed)
  • preview: Same as above but also previews the edited page below the editor
  • save: Used to save the current page - after saving a redirect using the show mode is sent. You should never see this mode in your template
  • cancel: Used to discard edited text when the conflict occurred - after discarding the current page is shown.
  • conflict: Internal mode. Used to report the occurrence of conflict on saving the page.
  • denied: Internal mode. Used to load the access denied message
  • locked: Internal mode. Used to show the page locked message
  • wordblock: Internal mode. Used to show the spam blocked message

Draft related

  • draft: Shows a draft of the current page.
  • draftdel: Deletes a draft of the current page - after the deletion a redirect using the show mode is sent.
  • recover: Recovers a wikitext from a draft of the current page and loads it into the editor.

Different views

  • export_raw: Export as wiki markup
  • export_xhtml (aka export_html): Export only content without template around it as XHTML but complete html body (doctype, body and head with meta information, styles and scripts, etc)
  • export_xhtmlbody (aka export_htmlbody): Export only content as XHTML without any surrounding bits (i.e. without head, body, styles, etc)

Other functions

  • subscribe (aka subscription): Manage subscription. Leads to subscription page.
  • backlink: Shows a list of pages that link to the current page.
  • revisions (aka history or revs): Shows changes and editors of the current page.
  • revert: Revert the page either to the previous revision (if in show mode) or to the earlier revision shown (if in diff mode)
  • diff: Generates a diff view for easy comparison between 2 revisions

Site actions

Main functions

  • index: Shows a generated index of the pages and namespaces
  • sitemap: Returns a sitemap file to search engines if enabled (not implemented by templates)
  • recent: Displays recent changed pages and allows diffs
  • search: Search functionality

ACL related

  • register: Register new user
  • login: Login user
  • logout: Logout user
  • profile: Show/Change users profile
  • resendpwd: Mail users password to given email address
  • admin: Displays the admin menu with all installed Admin Plugins, available to a logged in superuser or manager.

Other functions

  • check: Dumps some information about the users permissions and the DokuWiki setup.
  • debug: Dumps debug information, only available when allowdebug option is enabled.
devel/action_modes.txt · Last modified: 2011/02/20 16:56 by ach
 
Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Share Alike 3.0 Unported
Imprint Recent changes RSS feed Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki
WikiForumIRCBugsGitXRefTranslate