Current page variable - Fluid Topics

Fluid Topics Integration Guide

Category
Reference Guides
Audience
public
Version
Latest

The currentPage variable describes the subsection of the document currently displayed. It is only available in the Reader designer and in (page) components.

Example

The structure of currentPage is as follows:

{
  "number": 1,
  "title": "Introduction",
  "rootTocNode": {
    "tocId": "2xyGwfboWDe3nFsXub9iqA",
    "contentId": "FZt0k41OqOTEGXeSB8kXUw",
    "title": "Introduction",
    "hasRating": true,
    "prettyUrl": "r/Reader-Designer/Introduction",
    "depth": 1,
    "children": []
  },
  "toc": [],
  "topics": [
    {
      "tocId": "2xyGwfboWDe3nFsXub9iqA",
      "contentId": "FZt0k41OqOTEGXeSB8kXUw",
      "title": "Introduction",
      "hasRating": true,
      "prettyUrl": "r/Reader-Designer/Introduction",
      "depth": 1,
      "children": []
    }
  ],
  "hiddenTopics": [],
  "breadcrumb": []
}
Field Type Description
number Number The current page.
title String The value of the ft:title metadata key for the document.
rootTocNode Object Corresponds to the subsection of toc for the currently open topic.
toc String Corresponds to the children subsection of toc for the currently open topic, when using a custom pagination.
topics String All topics in the page.