Access Keys:
Skip to content (Access Key - 0)
Home (Access Key - 1)
All spaces... (Access Key - 3)
Log in (Access Key - 5)
Sign up (Access Key - 6)
Toggle Sidebar

page-info macro


{page-info} Macro

The {page-info} macro allows you to display several useful pieces of information about the page in a simple format

Overview

This macro allows you to display the following information in various configurations:

  • Who created the page, and when
  • Who last modified the page, and when
  • A list of everyone that has edited the page
  • A list of everyone who has added comments to the page
  • The current version, and date, of the page
  • A list of all versions of the page, and "diffs" between versions
  • Page title and "Tiny URL"
  • A list of all labels associated with the page

Macro Syntax

Add the macro to your page as follows:

{page-info:displaytype|page=Home|dateformat:dd/MM/YY HH:mm}

Parameters

Parameter Default Required Notes
default   The default "displaytype" parameter is the name of the piece of information you wish to see displayed, this may be one of the following:
  • created-user - displays the user who created the page
  • created-date - displays the date the page was created
  • modified-user - displays the user who last modified the page
  • modified-users - displays a comma separated list of all the users who have modified the page
  • modified-date - displays the date the page was last modified
  • participants - displays a comma separated list of the users who have modified or commented on the page
  • commenters - displays a comma separated list of the users who have commented on the page
  • current-version - displays the most recent version number for the page
  • versions - displays a comma separated list of version numbers, clickable to take you to view that version
  • diffs - displays a comma separated list of version numbers, clickable to take you to view the differences between that version and the next version
  • labels - displays a comma separated list of labels, clickable to allow you to view other pages which posess that label
  • tinyurl - displays a tinyurl link to the specified page
  • title - displays the title of the specified page
  • pageId - displays the Id of the current page
page current page The name of the page whose information you wish to display, if none is given then the current page is assumed. You can also use @self to refer to the current page and @parent to use the parent page.
dateFormat Default Date Format Allows setting the display format for the date and time displayed, when do dat is to be displayed this parameter has no effect. Details of the pattern syntax may be found Date Formats.
type flat For those display types that produce a list of information, you can specify:
  • flat - display a comma separeated list (default)
  • list - display a bullet list
prefix   When displaying a version numbers you may use this parameter to insert a prefix before the version number. Has no effect with those display types which do not display a version number.
reverse false When displaying a list of items, you can set this parameter to true to reverse the order of those items.
count show all If you want to limit the number of items shown in a list (eg. versions and diffs) define the number of items to be shown with this parameter.
showComments false Display the comments that accompany an update.
showVersions true Display the version numbers.

License and Availability

See: Page Information Tools Plugin

Examples

Displaying the current page's author

Displaying the current page's creation date

Displaying author and date

Displaying the name of the person who last modified the current page

Displaying the date that the current page was last modified

Displaying last modifier and modification date

Formatting dates

Listing the participants in a page

Listing users that have commented on a page

Listing users that have modified the page

Displaying the current page version

Listing the versions of the page

Reversing list order and limiting number of items

Prefixing the version number

Displaying list information as a bullet list

Displaying "diff" links

Displaying "Tiny URL" for a page

Displaying page title

Listing the labels on the page

Showing information about another page

Showing Edits and the accompanying comment

Showing Edit Comments without version numbers

Hints and Tips

None at present.

Frequently Asked Questions

None at present.

Issue Tracker

Adaptavist maintain a JIRA Project for tracking bug reports and feature requests for this macro. The currently reported items are shown below:

Adaptavist Public Issue Tracker (2 issues)
Key Pr Summary Updated Reporter Status
PIN-21 Minor Allow for an option to not display the difference links text when using the diffs parameter Mar 04, 2008 Chris Paquin OpenOpen
PIN-14 Minor Param to display the actual URL for tiny url Sep 22, 2008 Guy Fraser OpenOpen

See Also

Toggle Sidebar

See Also

Incoming Links


Outgoing Links


Added by Alain Moran on Mar 23, 2006 00:31, last edited by Alain Moran on Oct 24, 2008 17:21

This is a comment ... Guy, would you care to comment?

Yes, I would The macros above will surely pick up on the fact...

Anonymous

And here is an anonymous comment (actually made by Guy)

After installing Builder 2.0.1 I am getting joda errors similar to one described for scaffolding plugin (using c.2.2.9 with utilities plugin 2.1.3): page-info: java.lang.NoSuchMethodError: org.joda.time.format.DateTimeFormat.getInstance()Lorg/joda/time/format/DateTimeFormat;

Anonymous

Is there a parameter that allows me to view restrictions in a page. If a page is restricted and I view Page Information from the menu bar, then I get to see if a page has been restricted. Can I use the same info but place it on normal pages?

Anonymous

Is there a way to add the participants of a page in every wiki page (i guess make it part of the layout).

Is there a way to show trackback links from page info?