Welcome Guest, Not a member yet? Register   Sign In
need help with pagination !
#1

[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
#2

[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
#3

[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.
#4

[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





Theme © iAndrew 2016 - Forum software by © MyBB