Just wondering whether anyone has used the “%asset_sibling_prev_type_1%” and “%asset_sibling_next_type_1%” keywords but with conditions?
What I’m trying to do is rather than return the next sibling based on asset map > return the next sibling based on most recent published. I’m guessing Using SSJS?
Please note each page where I want this navigation to happen does have a paint layout applied.
Alternatively you’d need to source in an asset listing that lists the parent’s children, sorts it by published date, finds the current asset in the list to then figure out the prev and next links, all using SSJS, but could cause a slow page load if the asset listing has to load lots of assets to figure this out. Could also load this via ajax if needed.