Jump to content
John W.

Append an anchor to renderPager();

Recommended Posts

Look around for a while, but, no luck.

Using the built in pagination, renderPager();

With pagination, is there a way to append a named anchor to the renderPager() page number?

for instance:

instead of the default


but, add an anchor...



Or, would I have to put the anchor name into a segment, get the name, then use javascript to jump to the anchor?

such as somesite.com/inventory/myanchor/page2




Edited by John W.
using renderPager();

Share this post

Link to post
Share on other sites
echo $results->renderPager(array(
    'linkMarkup' => "<a href='{url}#YOURANCHOR'><span>{out}</span></a>"


  • Like 5
  • Thanks 2

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Recently Browsing   0 members

    No registered users viewing this page.

  • Create New...