Previous & Next Page Buttons
Adds navigation buttons for the previous and next CMS pages by linking to a collection list.
November 30, 2023
To show the previous or next button, connect a collection list with the handle on the right side and connect the slug of the current page to the Slug property. When the project is running, the component will automatically find the right item.
If there is no previous or next item because the current page is the first or last item in the collection, the layer set in the Placeholder property is displayed, or nothing if the placeholder is not set.
Note: In the editor, the component always displays the placeholder layer. The component correctly shows the previous or next item in the preview and on the live website.