Login | Forgot password | Register
What is OpenID?
OpenID is an Internet-wide identity system that allows you to sign in to many websites with a single account.
With OpenID, your ID becomes a URL (e.g. http://username.myopenid.com/). You can get a free OpenID for example from myopenid.com.
For more information visit the official OpenID site.
Archive
SilverStripe Forums » Archive » Sorting tables within CMS -- is this possible?
Our old forums are still available as a read-only archive.
|
Page:
1
|
Go to End | |
| Author | Topic: Sorting tables within CMS -- is this possible? | 605 Views |
-
Sorting tables within CMS -- is this possible?

28 December 2007 at 7:01pm
I'm wondering whether some sort of Ajax-enabled sorting is supposed to be possible for tables within the CMS. This thread (http://www.silverstripe.com/site-builders-forum/flat/8856) mentions something similar...and I'm looking for something along the same lines.
I finally got my complextablefield working, and I'm able to sort the displayed info through the template using this:
function ActiveReps() {
return $this->getComponents('Reps', "ID", "Composer ASC");but I need the table in the actual CMS to be organized alphabetically (by the first field, "Composer."
What file(s) should I edit to accomplish this? thank you!
-
Re: Sorting tables within CMS -- is this possible?

5 January 2008 at 9:46pm
you can simply add a constructor-parameter - i've updated the wiki page to explain this a bit more clearly: http://doc.silverstripe.com/doku.php?id=tablelistfield#sorting
| 605 Views | ||
|
Page:
1
|
Go to Top |
Currently Online: JoshuaLewis, NickJacobs, _Vince
Welcome to our latest member: marcusl

