Welcome Guest, Not a member yet? Register   Sign In
Problem in pagination class link display
#1

[eluser]oldrock[/eluser]
Hi,

when i use the pagination helper , i am not getting the current link highlighted.

(i.e) when i am in second page i need number 2 in that pagination link to be highlighted and i should not get href for that 2 . how can i achieve the above using the pagination class.

can anybody please give me the solution please . i have mentioned my configuration lines below.
Code:
$config['base_url'] = base_url()."onboard.php/onboard/createrp/relyingpartylist/page/";
            $config['total_rows'] = $RelDataIn['ResultsCount'];
            $config['per_page'] = '5';
            $config['cur_tag_open'] = '<b>';
            $config['cur_tag_close'] = '</b>';
            $config['page_query_string'] = FALSE;
            $this->pagination->initialize($config);

Thanks in advance
#2

[eluser]cideveloper[/eluser]
The reason you are not getting the current link highlighted is because you have set

Code:
$config['cur_tag_open'] = '';
$config['cur_tag_close'] = '';

Is there a reason you are setting these values to blank?

The default surrounds the number by a "strong" tag. You are removing that "strong" tag
#3

[eluser]InsiteFX[/eluser]
Next time you post please use code tags! Look at all your qoutes in your code you posted and you can see why.

InsiteFX
#4

[eluser]oldrock[/eluser]
hi ,
thanks for the reply
No reason for leaving it blank, then what can i set to make that highlighted.

thanks in advance
#5

[eluser]InsiteFX[/eluser]
Maybe you should clarify as what you mean by highlighted!

As cideveloper mentioned you need to add the <b> and </b> tags.

Unless you mean something else by highlighted.

InsiteFX
#6

[eluser]cideveloper[/eluser]
Remove the 2 config settings and it will go back to the default.




Theme © iAndrew 2016 - Forum software by © MyBB