Page Navigation Order by Custom Data Array

I have an array in a data file that I use to order pages within a visual archive I have set up. I want to be able to use that same order for in page navigation, but haven’t found a way to use the same array to inform the Prev and Next variables of the desired order.

Data Array example:
page_order = ["collection/", "collection/", "collection/", "collection/", "collection/"]

So, if you were on the page “collection/” the prev and next buttons would grab the prev and next from this array.

Hi there,

It would be easier to help you with a sample site. Please have a look at Requesting Help