ThemeBuilder for Confluence Server and DC

Page Navigation

This macro creates a link relative to the current page e.g. for Next and Previous 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}
Parameter Name Description Type Default Required

mode

Mode

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

enum

check

class

CSS Class

The CSS class to add to the link

string

error

id

HTML ID

The HTML id to add to the link

string

error

tooltip

Tooltip

The tooltip to use on the link

string

error

flag

Flag

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

string

error

notflag

Not Flag

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

string

error

Mode Options

  • next - Next sibling page

  • prev - Previous sibling page

  • parent - Parent page

  • first - Fist sibling page

  • last - Last sibling page

  • firstchild - First child page

  • lastchild - Last child page

Example

How to create a 'next/previous' navigation.

The link will now show if the current page does not have a matching mode page. e.g. if no 'Next' page then the 'Next' link will not show.
<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}

Result

A Next and Previous link is shown on the page.

page nav 01