Yii Framework Forum: Hide or disable pager links - Yii Framework Forum

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Hide or disable pager links Rate Topic: -----

#1 User is offline   ignition25 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 24
  • Joined: 25-November 10

Posted 15 April 2011 - 03:52 PM

Is there an attribute / setting to hide pager links that should be disabled or hidden?

For example, if you have:
Prev, 1, 2, 3, Next

"Prev" should be disabled / hidden if you're on the first page

I can do this via CSS, but wondering if there's already a built-in attribute/setting to do this? Maybe make the links still display, but don't make them active links?
0

#2 User is offline   Rodrigo Coelho 

  • Master Member
  • PipPipPipPip
  • Yii
  • Group: Members
  • Posts: 665
  • Joined: 05-August 10
  • Location:Rio de Janeiro, Brazil

Posted 15 April 2011 - 07:57 PM

You can find some useful information in this post: http://www.yiiframew...the-clinkpager/
0

#3 User is offline   riyazMuhammed 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 43
  • Joined: 13-September 12
  • Location:Bangalore

Posted 18 March 2013 - 06:04 AM

View Postignition25, on 15 April 2011 - 03:52 PM, said:

Is there an attribute / setting to hide pager links that should be disabled or hidden?

For example, if you have:
Prev, 1, 2, 3, Next

"Prev" should be disabled / hidden if you're on the first page

I can do this via CSS, but wondering if there's already a built-in attribute/setting to do this? Maybe make the links still display, but don't make them active links?


Hi,

I don't know if you are still looking for this solution.
I hope there are no built-in setting to do this. In this case, I hope it is best that you extend the CLinkpager class.
It is super easy, just see my post here.

http://www.yiiframew...kpager-example/
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users