I’m working on developing a new structure for my site, and I’ve hit a wall with a date-based question.
I’m building a list of articles, some of those articles have subpages that will be added to (sort of sub-articles if you will). I would like to change the date of the parent article based on the date of the most recent child.
The goal here is that all the parent articles would be ordered by date even if they don’t have children (some types of articles in the main list do, some don’t), and that when a new child is added to one, that child’s date becomes the sorting date.
I don’t want to use the modified() option, as the parent article also contains content that may get changed even without adding a new child.
My current blueprint for the parent article does not contain a date, what I was hoping to do was populate a date for the parent article based on the date field of the most recent child, as that would keep my logic clean in the main list.
Thanks for any help!