Are there any built in behaviors to deal with reordering entries by a weight column?
Lets say I want to move an entry from 5 to 3.
3 should update to a weight key of 4 and 4 should update to a weight key of 5
In addition, how do you set the default field to witch results should be sorted by.
Scanned through the docs and could not find anything relating to this.
Any links to relevant documentation on this matter would be greatly helpful.
Thanks.
-- Lets say I want to move an entry from 5 to 3.
3 should update to a weight key of 4 and 4 should update to a weight key of 5
In addition, how do you set the default field to witch results should be sorted by.
Scanned through the docs and could not find anything relating to this.
Any links to relevant documentation on this matter would be greatly helpful.
Thanks.
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/d/optout.
No comments:
Post a Comment