Page Navigation

This macro creates a link relative to the current page. The most common use is to add Next and Previous page navigation.

Usage

Storage Format

<ac:macro ac:name="panel-pagenav"> <ac:parameter ac:name="parameter">value</ac:parameter> <ac:rich-text-body> <!-- name of link --> </ac:rich-text-body> </ac:macro>

Wiki Markup

{panel-pagenav:parameter=value} <!-- name of link --> {panel-pagenav}
ParameterNameDescriptionTypeDefaultRequired

mode

Mode

The navigation mode - next, prev, parent, first, last, firstchild, lastchild

enum


class

CSS Class

The CSS class to add to the link

string


id

HTML ID

The HTML ID to add to the link

string


tooltip

Tooltip

The Tooltip to use on the link

string


flag

Flag

A list of flags, one of which must be defined for the content to be displayed

string


notflag

Not Flag

A list of flags that must not be defined for the content to be displayed

string


Mode Options

  • next - Next sibling page

  • prev - Previous sibling page

  • parent - Parent page

  • first - First sibling page

  • last - Last sibling page

  • firstchild - First child page

  • lastchild - Last child page

Example

How to create a Next and Previous navigation.

<ac:macro ac:name="panel-pagenav"> <ac:parameter ac:name="mode">next</ac:parameter> <ac:rich-text-body>Next</ac:rich-text-body> </ac:macro> | <ac:macro ac:name="panel-pagenav"> <ac:parameter ac:name="mode">prev</ac:parameter> <ac:rich-text-body>Previous</ac:rich-text-body> </ac:macro> {panel-pagenav:mode=next}Next{panel-pagenav} | {panel-pagenav:mode=prev}Previous{panel-pagenav}

The link will not show if the current page doesn't have a matching mode page. If there isn’t another page to follow, the Next link will not display.

Result

A Next and Previous links are shown on the page.

On this page