Measurable Success «10 Checkpoints for Future-Proof Enterprise CMS» White Paper
Measurable Success - White Paper

currentPage()

Returns the current page.

const currentPageId = Scrivito.currentPage().id();
<Scrivito.LinkTag to={linkListItem} className={currentPageId == linkListItem.objId ? 'active' : ''} />

Params

none

Returns

Obj, undefined, null

Possible return values:

  • undefined - The current page has not been set or loaded yet.
  • null - The current page does not represent a Scrivito page.
  • Obj - The current page.