On the model it's self.
The is a field for the listings / Listings table for "featured" bool.
Pagination $params has "featured" => $featured so if the listings/featured
is passed then it would only paginate featured listings.
-----Original Message-----
From: cake-php@googlegroups.com [mailto:cake-php@googlegroups.com] On Behalf
Of Anja Liebermann
Sent: Friday, October 25, 2013 8:23 AM
To: cake-php@googlegroups.com
Subject: Re: Pagination Help
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi Dave,
is this condition on your first model or on a related model?
Anja
Am 16.10.2013 17:59, schrieb Advantage+:
> Now this used to work, but now it does not.. Not sure what happened.
>
>
>
> I have standard pagination but offer the ability to paginate listings
> based on "featured".
>
>
>
> <?php $this->Paginator->options(array('url'=>
> array($this->params['pass'])));?>
>
>
>
> So if "featured" was passed it would then only display featured
> listings and paginate correct.
>
>
>
> Now it just defaults back to standard (non-featured) listings. Initial
> page of featured is fine but all the pagination links do not continue
> to carry the listings/featured/page:xxx it goes to listings/page:xxx
>
>
>
> Any insight would be great.
>
>
>
> Version 2.3.8
>
>
>
> Thanks,
>
> Dave
>
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (GNU/Linux)
iEYEARECAAYFAlJqTXQACgkQbOdiIJzHNKEKDQCeJmOXfPY4Y9zDs0/ogZjS5ljw
3u4An07PTuWLz1E8/iI+KluKzo1fsMU1
=Gw4r
-----END PGP SIGNATURE-----
--
Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter
http://twitter.com/CakePHP
---
You received this message because you are subscribed to the Google Groups
"CakePHP" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to cake-php+unsubscribe@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php.
For more options, visit https://groups.google.com/groups/opt_out.
--
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP
---
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cake-php+unsubscribe@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php.
For more options, visit https://groups.google.com/groups/opt_out.
Friday, October 25, 2013
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment