Uploaded image for project: 'Documentation'
  1. Documentation
  2. DOCU-2633

DOC: Describe how to get the current page when rendering an inherited component

    XMLWordPrintable

Details

    • Task
    • Resolution: Done
    • Neutral
    • None
    • None
    • None
    • None

    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.

      Checklists

        Acceptance criteria

        Attachments

          Activity

            People

              abrooks Adrian Brooks
              abrooks Adrian Brooks
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Checklists

                  Task DoR