Hi Nate, and welcome!
The missing link is simply that you you need to first get a contentNode from
the contentapp, see cmsfn.contentByPath() for example.
In a template script - the "content" variable always refers to what is stored
in the current component on the page - that is - the things stored by the user
via the dialog.
Here is a script which pulls content from the tours app of the travel demo.
[code]
<div class="contentDemo">
[#assign tourFolder = cmsfn.contentByPath("/magnolia-travels/", "tours")]
[#assign tours = cmsfn.children(tourFolder)]
<ul>
[#list tours as tour ]
<li>${tour.name!} </li>
[/#list]
</ul>
</div>
[/code]
Hope this helps.
We'll take a look at how the documentation can be improved to make this more
obvious.
Cheers, Topher
--
Context is everything:
http://forum.magnolia-cms.com/forum/thread.html?threadId=d9865bfd-a447-4491-be0e-54179e7e3ca0
----------------------------------------------------------------
For list details, see http://www.magnolia-cms.com/community/mailing-lists.html
Alternatively, use our forums: http://forum.magnolia-cms.com/
To unsubscribe, E-mail to: <[email protected]>
----------------------------------------------------------------