Hi,
I am currently working on a one page website. I would like to order the different content blocks in the cms. So I made for all page types an Integer field "OrderHomePage" where I can set the order of the section.
On the homepage (homepage.ss) I have included all Page Types and added a Loop. I was expecting that the includes would in the correct order according to the value that was set for "OrderHomePage", but this does not work. Is there another easy way how to sort these sections?
<% loop $Children.Sort(OrderHomePage, ASC) %>
<% if $SliderHomePageCheck == "1" %>
<% include SliderPage %>
<% end_if %>
<!--************************************
Main Start
*************************************-->
<main id="tg-main" class="tg-main tg-haslayout">
<% if $NewsHomePageCheck == "1" %>
<!--Start News Page with general info!-->
<% include NewsPage %>
<!--End NewsPage with general info!-->
<% end_if %>
<% if $EventHomePageCheck == "1" %>
<!--Start Event Page with general info!-->
<% include EventPage %>
<!--End Event Page with general info!-->
<% end_if %>
<% if $EventDetailHomePageCheck == "1" %>
<!--Start Event Page with detailed info!-->
<% include EventDetailPage %>
<!--End Event Page with detailed info!-->
<% end_if %>
<% if $MatchMakingHomePageCheck == "1" %>
<!--Start Match Making Page!-->
<% include MatchMakingPage %>
<!--End Match Making Page!-->
<% end_if %>
<% if $MediaTeaserHomePageCheck == "1" %>
<!--Start Media Teaser!-->
<% include MediaTeaserPage %>
<!--End Media Teaser!-->
<% end_if %>
<% if $FighterHomePageCheck == "1" %>
<!--Start Fighter Page!-->
<% include FighterPage %>
<!--End Fighter Page!-->
<% end_if %>
<% if $FighterStatsHomePageCheck == "1" %>
<!--Start Fighter Stats Page!-->
<% include FighterStatsPage %>
<!--End Fighter Stats Page!-->
<% end_if %>
<% if $PartnerHomePageCheck == "1" %>
<!--Start Partner Page!-->
<% include PartnerPage %>
<!--End Partner Page!-->
<% end_if %>
</main>
<% end_loop%>