cake-php@googlegroups.com
[Top] [All Lists]

Re: Paginator Question

Subject: Re: Paginator Question
From: "Ma'moon"
Date: Mon, 15 Nov 2010 19:21:07 -0500
Thanks for the answer cricket, i am already aware of [$paginator->numbers(array('title' => 'foo')] but this is a static ALT for the link, i am trying to dynamically fill the "ALT" with something like "Page Number X From Section Y" where X is the page number for the link and Y is a dynamic "or static" string, there must be a way to do it, if this is not possible then i will open a ticket at CakePHP's lighthouse in order to have such a feature in Cake's paginator.


On Mon, Nov 15, 2010 at 7:02 PM, cricket <zijn.digital@xxxxxxxxx> wrote:
On Mon, Nov 15, 2010 at 4:40 PM, Ma'moon <phpirate@xxxxxxxxx> wrote:
> Hello Bakers,
>
> I am using cake's paginator to paginate my views, i am actually using the
> folowing code to accomplish this task:
> $paginator->numbers(array('tag' => 'td align="center"', 'separator' => ''));
>
> My question is, how do you guys put a dynamic "ALT" for the links being
> generated by the paginator using [$paginator->numbers]?

echo $paginator->numbers(array('title' => 'foo'));

Not very helpful, eh? I had a look into this a while back to see about
setting distinct titles but gave up as it didn't seem worth the
trouble of extending the helper (which appears to be the only
solution) just for that.

Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions.

You received this message because you are subscribed to the Google Groups "CakePHP" group.
To post to this group, send email to cake-php@xxxxxxxxxxxxxxxx
To unsubscribe from this group, send email to
cake-php+unsubscribe@xxxxxxxxxxxxxxxx For more options, visit this group at http://groups.google.com/group/cake-php?hl=en

Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions.
 
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To post to this group, send email to cake-php@xxxxxxxxxxxxxxxx
To unsubscribe from this group, send email to
cake-php+unsubscribe@xxxxxxxxxxxxxxxx For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
<Prev in Thread] Current Thread [Next in Thread>