php - Joomla - Add an anchor to the link created by JPaginator -


i need add anchor links created standard joomla paginator. in places website i'm working in has lots of content, , want when click on paginator, when page reloaded placed in list.

so, can convert "site.com/index.php?start=3" "site.com/index.php?start=3#content"?

you have create pagination.php file inside template's html folder override default output. can find example of file in joomla3's protostar template inside templates/protostar/html/pagination.php can modify line 180 reads:

return "<li><a title=\"" . $item->text . "\" href=\"" . $item->link . "\" class=\"pagenav\">" . $display . "</a></li>"; 

and modifying so: $item->link . "#content\"

more info on pagination links overrides


Comments

Popular posts from this blog

javascript - jquery or ashx not working -

opencv - DataType<cv::detail::deriv_type>::depth what is it used for -

python 3.x - Mapping specific letters onto a list of words -