Skip to main content
Skip table of contents

Create links

You can create links to other pages using the $link placeholder:

Linking to a page

HTML/XML
<a href="$link.page("pageTitle")">Link_to_page</a>

You can also link to a page in a specific space:

Linking to a page in another space

HTML/XML
<a href="$link.page("spaceKey", "pageTitle")">Link_to_page_in_other_space</a>

During rendering, Scroll Viewport replaces the placeholder with a generated link. For more information, see the complete reference of the $link placeholder.

Sometimes you have to fetch some information from other pages, such as children or the next or previous page.

This will retrieve a page with all the methods and properties a usual PagePlaceholder has.

PHP
#set($otherPage = $include.page("Other Page"))

You can also add the space to this function in the same way as with the $link placeholder.

You can also retrieve a page's children pages, parent page and next and previous pages.

Chapter navigation

XML
#if( $page.next )
    <a href="$page.next.absoluteLink">$page.next.title</a> 
#end
#if( $page.prev )
    <a href="$page.prev.absoluteLink">$page.prev.title</a>
#end

If you want to retrieve only pages at the same level, you can use the following snippet:

CODE
#if ($page.parent.children.contains($page.prev) && $page.prev) 
	<a href="$page.prev.absoluteLink">$page.prev.title</a> 
#end

The Add breadcrumbs uses $page.ancestors. More information can be found in the PagePlaceholder docs.

JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.