[DOCU-2633] DOC: Describe how to get the current page when rendering an inherited component Created: 22/Dec/22  Updated: 02/Jan/23  Resolved: 02/Jan/23

Status: Closed
Project: Documentation
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Task Priority: Neutral
Reporter: Adrian Brooks Assignee: Adrian Brooks
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Template:
Acceptance criteria:
Empty
Task DoR:
Empty

 Description   

Problem: In this forum post, the Magnolia user couldn't find the information about state.mainContentNode.

Fix: Add this use case to the documentation:

[#local currentPage = (cmsfn.page(cmsfn.asContentMap(state.mainContentNode)))!{}]

Expand the description of state.mainContentNode here.


Generated at Mon Feb 12 01:28:52 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.