title: Magnolia get content from children page in freetext
body: <p>I have a tree structure and want to use this as a category based faq.
  I know there is a categorization module, but i want to use a file tree structure.</p>
  
  <p>so i had the following:</p>
  
  <pre><code>faq
    - first category
      - first entry
      - second entry
    - second category
      - first entry
    ...
  </code></pre>
  
  <p>each page has an dialog with an headline and a description. thats the content i want to get for each page.</p>
  
  <p>so currently i get the current page, and loop through the childpages</p>
  
  <pre><code>[#local currentPage=cmsfn.page(content) /]
  [#local pageChildren = cmsfn.children(currentPage,  "mgnl:page")]
  
  [#list pageChildren as page ]
  {
      "category": "${page.title}",
  
      [#local pageContent = cmsfn.contentById(page)]
      "headline": "${pageContent.headline!?json_string}",
      "description": "${pageContent.description!?json_string}"
   } [#if page?has_next],[/#if]
   [/#list]
  </code></pre>
  
  <p>Now i get the category (the page title) for each entry. Thats fine. But headline and description are not filled.</p>
  
  <p>I know, <code>page</code> is a node. <code>page</code> is the page and can access each page property (title, template).</p>
  
  <p>I didn't find anything to get the content from a page via <code>cmsfn</code>. There are methods for <code>contentById</code>, <code>contentByPath</code> and also <code>page()</code> to get the page for a content. </p>
  
  <p>But how i can get the content, from a page?</p>
  
  <p><strong>Update:</strong></p>
  
  <p>I made big step.
  I get my pageContent from contentByPath, and use here the path of the page.
  After this, i convert this to an JCR Node.</p>
  
  <pre><code>[#local pageContent = cmsfn.contentByPath(page.@path)]
  [#local jcr = cmsfn.asJCRNode(pageContent)]
  </code></pre>
  
  <p>Now dumping shows my jcr.</p>
  
  <pre><code>Node (/my-website/faqs/kategorie1/question1)
    footer = Node (/my-website/faqs/kategorie1/question1/footer)
      mgnl:activationStatus = true (Boolean)
      [...]
      jcr:uuid = "a09d13da-3549-4b2a-8609-3b635e6f1c59" (String)
    layers = Node (/my-website/faqs/kategorie1/question1/layers)
      mgnl:activationStatus = true (Boolean)
      [...]
      jcr:uuid = "08b52c64-7327-4300-884c-047e42f560d0" (String)
    overlays = Node (/my-website/faqs/kategorie1/question1/overlays)
      mgnl:activationStatus = true (Boolean)
      [...]
      jcr:uuid = "9a78479b-0d25-4acf-9554-b9d626a7cc61" (String)
    content = Node (/my-website/faqs/kategorie1/question1/content)
      0 = Node (/my-website/faqs/kategorie1/question1/content/0)
        description = "something" (String)
        headline = "my example" (String)
        mgnl:activationStatus = true (Boolean)
        mgnl:created = Jul 24, 2019 11:20:40 AM UTC (Date)
  </code></pre>
  
  <p>What i really need, is here the content node, and the description and the headline.</p>
  
  <p>But how to access this, and are there better methods to get this content?</p>