Introduction
The CQL Navigation Macro will generate the links to the Previous and Next pages automatically. This allows the user to navigate the pages chronologically with ease.
Choose the page sequence
Insert or edit CQL Navigation Macro, then use the Navigation tab.
|
Field |
Required |
Default |
Description |
Notes |
|---|---|---|---|---|
|
Navigate By |
Yes |
Same parent page |
Defines which pages can appear before and after the current page. |
Options are Same parent page, Label across different parent pages, and Label within the same parent page. |
|
Labels |
Conditional |
Empty |
Provides the comma-separated labels used by either label-based navigation mode. |
Required for Label across different parent pages and Label within the same parent page. Example: |
|
Order By |
Yes |
Title |
Defines the sequence used to determine the previous and next pages. |
Options are Position, Creation Date, Last Modified Date, and Title. All date and title ordering is ascending. |
The Navigate By options include:
|
Option |
Included pages |
|---|---|
|
Same parent page |
Sibling pages under the current page's parent |
|
Label across different parent pages |
Pages in the current space that have any configured label |
|
Label within the same parent page |
Sibling pages that have any configured label |
For a label-based mode, enter one or more comma-separated labels, such as documentation, release-notes.
Choose Order By:
-
Position follows the Confluence page-tree order and is available only for Same parent page.
-
Creation Date, Last Modified Date, and Title use ascending CQL order.
The current page must belong to the configured sequence. If it is first or last, the unavailable Previous or Next button is disabled.
Configure the buttons
Use the Display tab to configure the navigation controls.
|
Field |
Required |
Default |
Description |
Notes |
|---|---|---|---|---|
|
Position |
No |
Side |
Aligns the navigation controls within the macro area. |
Options are Left, Center, Right, and Side. Side places Previous and Next at opposite sides. |
|
Size |
No |
Medium |
Sets the navigation button size. |
Options are Small, Medium, and Large. |
|
Button Icon |
No |
None |
Sets the icon displayed on the Previous and Next buttons. |
Options are None, Basic arrow, Circle arrow, and Chevron. The Previous icon appears before its text; the Next icon appears after its text. |
|
Previous Button Text |
No |
|
Sets the label of the Previous button. |
Use |
|
Next Button Text |
No |
|
Sets the label of the Next button. |
Use |
|
Background Color |
No |
Blue |
Sets the navigation button color. |
Options are Blue, Green, Navy, Yellow, Orange, Purple, and Red. |
|
Show table of contents |
No |
Off |
Adds a button that opens the complete configured page sequence. |
Existing macro instances remain off until an author enables this option. |
Review the live preview to confirm the layout and text before saving.
Use the table of contents
When enabled, select Table of contents to open the page sequence.
-
The current page is marked and scrolled into view.
-
Select any page to open it.
-
For long sequences, scroll toward the start or end to load more pages.
-
Press Escape, click outside the navigation area, or move focus to another window to close the panel.
The table of contents is opt-in. Existing navigation macros remain unchanged until an author enables it.
Below are contents from the old version
Introduction
The CQL Navigation Macro will generate the links to the Previous and Next pages automatically. This allows the user to navigate the pages chronologically with ease.
Usage
Adding the macro
Type /CQL Navigation in the editor and select CQL Navigation Macro
Editing the parameters
-
Click on the macro to bring up the Edit button ( 🖊 icon below)
-
Click on the Edit button. A panel will load to the right of the page.
-
Update the parameters on the panel as shown.
Configuration
|
Field Name |
Required |
Default Value |
Explanation |
Additional Information |
|---|---|---|---|---|
|
Navigate By |
|
Same parent page |
Select the navigation mode:
|
This is to select a set of pages.
|
|
Label |
|
|
Enter valid labels
|
|
|
Order By |
|
Created Date |
Select the order of the next / previous page.
|
This is to sort the selected pages Eg. Created Date is selected, then
|
|
Previous Button Text |
|
Previous |
Enter Previous button text. Use $title to display page title. |
|
|
Next Button Text |
|
Next |
Enter Next button text. Use $title to display page title. |
|
|
Background Color |
|
Blue |
Select the button background colour:
|
|
Demo