Chronological next/previous?
Permalink Browser Info Environment
Thanks for this helpful block!
Is there a way to have the next/previous function along chronological lines?
ie instead of using the site map order, the order of pages is determined by the public date of the page? (similar to how a page list block can be ordered by display or chronology)
I appreciate any guidance you can give.
Is there a way to have the next/previous function along chronological lines?
ie instead of using the site map order, the order of pages is determined by the public date of the page? (similar to how a page list block can be ordered by display or chronology)
I appreciate any guidance you can give.
Type: | Discussion |
---|---|
Status: | New |
1) override the next previous controller by copying it to /blocks/next-previous/controller.php
2) in the function loadOtherCollections(), replace sortByDisplayOrder() with sortByPublicDate() or sortByPublicDateDescending()
hopefully that should do it.