![]() |
need help with pagination ! - 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: need help with pagination ! (/showthread.php?tid=52957) |
need help with pagination ! - El Forum - 07-03-2012 [eluser]alsemany[/eluser] hi all just a small question how to change the attributes on pagination links ? I need to change the attribute target="_blank" for all pagination links is there any solution without changing the codeigniter core need help with pagination ! - El Forum - 07-03-2012 [eluser]alsemany[/eluser] I make a trick for this and this is the solution on the configuration file of pagination Code: /application/config/pagination.php I added this line Code: $config['anchor_class'] = 'anyclass" target = "_blank'; this will get the output like that Code: <a class="anyclass" target="_blank" href="pla.plapla/plapla/"></a> I hope Codeigniter developer add some other configration to add attributes thanks need help with pagination ! - El Forum - 07-03-2012 [eluser]Aken[/eluser] The Pagination library in the develop branch on GitHub includes the ability to add any attribute you'd like to the links. Copy it and create your own library using it. Or update your entire installation if you want to try the latest and greatest. Just remember it is an in-progress version. need help with pagination ! - El Forum - 07-04-2012 [eluser]alsemany[/eluser] [quote author="Aken" date="1341383492"]The Pagination library in the develop branch on GitHub includes the ability to add any attribute you'd like to the links. Copy it and create your own library using it. Or update your entire installation if you want to try the latest and greatest. Just remember it is an in-progress version.[/quote] yeah thanks I found it on github but I'm really don't like to re-edit the core library or making my own one because I love to use the latest stable version with out any modification so I will use this trick till you release the new version thanks Aken so much for your help |