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.

Type: Discussion
Status: New
kirkroberts
View Replies: View Best Answer
Tony replied on at Permalink Best Answer Reply
Tony
try this:

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.

concrete5 Environment Information

Browser User-Agent String

Hide Post Content

This will replace the post content with the message: "Content has been removed by an Administrator"

Hide Content

Request Refund

You have not specified a license for this support ticket. You must have a valid license assigned to a support ticket to request a refund.