Hello,
wondering if anyone can point me in the right direction as I seem to be going around in circles.
I have a one page site which uses the load-more ajax method from https://www.couchcms.com/forum/viewtopic.php?f=8&t=8963&p=31611&hilit=infinite#p31611
What I want to be able to do is load all pages upto a specific id when the page url # fragment is an id of an event.
so i think i need to be able to:-
- check if an id exists as page
- if it does, load all pages upto that id
- revert to the load-more behaviour
Not after a solution (though would happily accept one) just a nudge in the right direction as
cheers
EDIT: After looking around as much as i can, i think all i need to know is how to exit the pages tag when a condition is met? Not having much luck figuring it out...
EDIT2: maybe cms:abort is the way to go, willl have a play and see...
wondering if anyone can point me in the right direction as I seem to be going around in circles.
I have a one page site which uses the load-more ajax method from https://www.couchcms.com/forum/viewtopic.php?f=8&t=8963&p=31611&hilit=infinite#p31611
What I want to be able to do is load all pages upto a specific id when the page url # fragment is an id of an event.
so i think i need to be able to:-
- check if an id exists as page
- if it does, load all pages upto that id
- revert to the load-more behaviour
Not after a solution (though would happily accept one) just a nudge in the right direction as
cheers
EDIT: After looking around as much as i can, i think all i need to know is how to exit the pages tag when a condition is met? Not having much luck figuring it out...
EDIT2: maybe cms:abort is the way to go, willl have a play and see...