Ever wanted to explicitly define what page to display on the current pagination content from a url password?
This code should should aim you in the right direction.
Logic:
-Get url variable (“page”) value.
-set $total to the size of the pagination repeatable structure.
-If $pageId is set and is less than or equal to $total then use $pageId; else use the latest item.
Pagination JS that can be included in the velocity file
- define page: to be $targetPage
*note: Have the Pagination JS code in the same template velocity file as the web content.