Recent Changes - Search:

add Cookbook page

hide

Cookbook


hide

Topics


show

Changed

Visitor's book Site map pmwiki-2.3.33

Pm Wiki Info

To do
  • change skiwi
  • remove this comment

PmWikiInfo version 2024-04-27

Summary: Display of selected PmWiki Information is a wiki page
Version: 2024-04-27
Prerequisites: ExtensionHub; PmWiki 2.3.33; PHP 8
Status: Stable
Maintainer: skiwi
Licence: GPL3#
Users: (view / edit)
Discussion: PmWikiInfo-Talk

Questions answered by this recipe

How can I view some internal PmWiki information in a wiki page without having to enable the diag action.

Description

This recipe provides markup for a directive to select and display a number of internal PmWiki variables.

The directive is called as:

(:pmwikiinfo optional parameters:) and described below.

Extension Installation

This extension requires ExtensionHub.

  • download PmWikiInfo-2024-04-27.zip Δ
  • copy to the /extensions/ directory as PmWikiInfo.zip
  • optionally, extract (unzip) the compressed extension in the pmwiki/extensions directory
    • ensure the extension's directory name is /PmWikiInfo/; on non-windows systems case sensitivity is likely to be an issue

If you have used this recipe previously

  • remove from config.php the line
    include_once($FarmD/cookbook/pmwikiinfo.php);

Usage

Place the directive, as described below, in your PmWiki page. Parameters are case-insensitive. For example:

(:pmwikiinfo vars recipeinfo:)

If no parameters are supplied this directive will display the directives it accepts.

Attach:pmwikiinfo-output.png Δ|PmWiki Info output (truncated) You can use this recipe to display some internal PmWiki arrays and variables. These include:

and using

  • vars

a number of internal PmWiki variables including: $Author, $AuthorGroup, $CategoryGroup, $CookiePrefix, $DefaultGroup, $DefaultName, $DefaultPage, $GroupFooterFmt, $GroupHeaderFmt, $HandleImageTplFmt, $PageListSortComp, $Skin, $SiteAdminGroup, $SiteGroup, $UploadDir, $UploadDirQuota, $UploadMaxSize, $UploadPrefixFmt, $UploadPrefixQuota, $UploadUrlFmt, $Version

Configuration

config.php settings

You can change the following in config.php. For example

$PmWikiInfoDebug = true; # results may vary

Internationalisation

There is no internationalisation for this recipe.

Change log / Release notes

2022-12-30 Refactor from Simple Recipe Template

See also

Contributors

Special thanks to Petko and the PmWiki documenters.

Comments

See discussion at PmWikiInfo-Talk

tahi Page last modified on 2024 Apr 27 15:19

Edit - History - Recent Changes - WikiHelp - Search - email page as link -> mailto:?Subject="KiwiWiki: Pm Wiki Info"&Body=