4.4.4 customizing pagination links - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: CodeIgniter 4 (https://forum.codeigniter.com/forumdisplay.php?fid=28) +--- Forum: CodeIgniter 4 Support (https://forum.codeigniter.com/forumdisplay.php?fid=30) +--- Thread: 4.4.4 customizing pagination links (/showthread.php?tid=89158) |
4.4.4 customizing pagination links - cadgiru - 01-17-2024 Using default_full pls can U help me change the pagination look, would like to replace first with '<<' , previous '<' , last '>>' , next '>' ? Found a crude but easy way of doing this, probably not recommended: With : ./vendor/codeignator4/framework/system/Language/en/Pager.php Commented out original array and replaced with modified Code: <?php q1 Can anyone please help with a more valid way of doing this? q2 Is it possible to replace the text based links with icons / buttons ? q3 Can somebody provide css on how to format links ? RE: 4.4.4 customizing pagination links - InsiteFX - 01-21-2024 CodeIgniter 4 User Guide - Pagination - Customizing the Links RE: 4.4.4 customizing pagination links - cadgiru - 01-22-2024 (01-21-2024, 11:08 PM)InsiteFX Wrote: CodeIgniter 4 User Guide - Pagination - Customizing the LinksGot what I hoped for, but felt quite sure I was not doing it the correct way.. Pls, scroll in the code section. RE: 4.4.4 customizing pagination links - InsiteFX - 01-22-2024 You need to create a template like it shows, you can copy the ones out of system/Pager/Views to work with. You need to edit app/Config/Pager and add your template name to it. Create a Pager folder under the app/Views/Pager and add your Pager view template to it. |