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 1

Share this post

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    No registered users viewing this page.

  • Create New...