Welcome Guest, Not a member yet? Register   Sign In
Pagination suffix & reuse_query_string problem
#3

(09-07-2016, 12:39 PM)PaulD Wrote: The suffix you have added is meant to add a suffix like .html or .htm to a url and as you can see, it has been placed in the right place, it is just that it was not meant to add anchor links such as #anchor

Your URL needs to be constructed differently than the way you are currently doing it. To add an anchor to a url when outputting it in a view you could do something easy like:

PHP Code:
<a href="<?php echo site_url('my/segments'); ?>#anchor">My Link</a

I don't use these very much so there might be something better to use in the URL helper, I had a quick look but could not see anything.

Hope that helps,

Paul.

Thanks a lot for your reply! Now I realise that I misunderstood the purpose of $config['suffix'] option.
But I still don't realise how can I add something to the end of automatically generated by Pagination class links?  Sad
Reply


Messages In This Thread
RE: Pagination suffix &amp; reuse_query_string problem - by raudibard - 09-07-2016, 12:50 PM



Theme © iAndrew 2016 - Forum software by © MyBB