Using Child Nodes for Content
SiempreCMS also allows you get content from child nodes. You most probably would use this for overviews of child nodes such as a news homepage with a varying number of news items below it.
Template Code
The example below shows how to reverse the sort order of the child nodes (e.g. to have the latest news first). Each child node is provided as an item.
<ul>
{|@foreach(item in @Page.Children.SortBy("sortOrder DESC"))
{
<li><hr/><a href='{|item.URL|}'>{|item.Heading1|}</a> </li>
}|}
</ul>