Welcome Guest, Not a member yet? Register   Sign In
Pagination - Design current page link
#1

[eluser]PhilTem[/eluser]
Heya,

I was just wondering, whether there is a clean way to design the page link for the current page instead of just having it as a simple digit because my page-design "wants" the link to be a real link with an additional class.

Since I found no solution inside the user_guide I took a look at the source code of the library and edited it for testing purpose, but reverted it since something like this isn't proper coding Wink

But anyhow, is there an easy way except for extending the pagination library with MY_Pagination? Or might this feature be implemented within the next release?
Would be really nice - at least I'd find it really nice. And I guess several others as well.

And is it true, that there is a little, let's say, bug inside the pagination library? When one adds the 'anchor_class' you need to add an ' ' empty space at the end of your definition since there is no empty space inside the library used, so something like this
Code:
$config['anchor_class'] = 'link_class'
produces
Code:
<a classhref="URL_TO_LINK">...</a>

It's not a real severe bug, but its a little unnice-thing.


Best,

Phil




Theme © iAndrew 2016 - Forum software by © MyBB