Add anchor to page parameters after clicking on pagination link
My pages work well. I have a repeat region on a page and the pagination works well. After the "Next" or "Previous" links are clicked the page reloads, but starts goes to the top of the page. I'd like to know if I can set it so that after "Next" is clicked the page can reload and go to an anchor on the page (where the repeat region is located).
Thank you for your help.
Take care and stay safe
Ralph
I figured it out - simple solution I missed:
append the hash anchor to the url in the getFirstPageLink(), getPrevPageLink(), getNextPageLink() and getLastPageLink()
e.g.,
FROM:
<?php echo $Recordset1->getFirstPageLink(); ?>">First</a>
TO:
<?php echo $Recordset1->getFirstPageLink() . "#adviceq"; ?>">First</a>
I hope this can help another with a similar need.