![]() |
Pagination - Design current page link - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23) +--- Thread: Pagination - Design current page link (/showthread.php?tid=42590) |
Pagination - Design current page link - El Forum - 06-12-2011 [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 ![]() 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' Code: <a classhref="URL_TO_LINK">...</a> It's not a real severe bug, but its a little unnice-thing. Best, Phil |