page_list sort by youngest child without including child pages

Permalink
I have a page_list template that displays a list of video teaching series. Each part of a series is a subpage of the series page, like categories. But only the "categories" are displayed in my page_list.

I need to be able to sort this list of series based on which one has the youngest child.

I was able to do this within the view.php of my template by resorting $cArray, however that does not work with pagination turned on, which I need.

Here is the link to what I'm working on:www.www.cornerstonefellowship.tv/media/messages...

Any ideas would be greatly appreciated!

 
scotty4567 replied on at Permalink Reply
Anyone have any ideas?
tylertyphoon replied on at Permalink Reply
tylertyphoon
Hey Scotty,
I've been experimenting with similar. What I've settled on for now is using composer in order to automatically generate the pages from information input from there and using the page_list to show those pages. When you generate your page_list block there's an option for what kind of page type you want to display. For such I may have a special page type of series and display those with the actual parts to the series within that. There is a church site I've come across on C5 that has tabs so all the messages in the series are in one page:http://www.thejourneyfamily.com/media/one-flesh/...

Back to the page list though, there's an option to sort based on sitemap which I have selected and when a new page is generated it's on top. This should work for series if there's only one series at a time so once you finish a series and begin a new one the new series will be on top. Then if there were anything that needed to be moved up it could be done so via the site map.

I'm sure there is a way to do this through php but I haven't delved into that since it works fine for me as is.