10390 Posts in 2201 Topics by 1712 members
|
Page:
1
|
Go to End | |
| Author | Topic: | 923 Views |
-
Where is the sortabledataobject Module

6 June 2010 at 6:37am
Hi
does anyone have any idea why i can download the sortabledataobject module being talked about here.
http://doc.silverstripe.org/modules:sortabledataobjecti really need to use it.
thx
P
-
Re: Where is the sortabledataobject Module

6 June 2010 at 7:10am
It's part of the DataObjectManager package.
-
Re: Where is the sortabledataobject Module

6 June 2010 at 7:22am
Hi UC
the thing is i tries following the tutorial step by step using 2.4 but i get an error say these classes doesnt exist.
<?php
Object::add_extension('ComponentSet','SortableDataObjectSet');
Object::add_extension('DataObjectSet','SortableDataObjectSet');
Object::add_extension('Page_Controller','SortableController');i want to implement front-end sorting
thx
P
-
Re: Where is the sortabledataobject Module

6 June 2010 at 7:40am
Oh, sheesh.. that hasn't existed in like 2 years. I should remove that documentation. That whole adventure was a really bad idea. Data should be sorted in the backend.
-
Re: Where is the sortabledataobject Module

6 June 2010 at 8:30am
Hi
Well said!
was just trying to be too ambitious I know DOM sorts very well and let me use that.thanks for your time UC
regards
PJ
-
Re: Where is the sortabledataobject Module

6 June 2010 at 1:15pm
Sure, no problem.. It's funny, I was just thinking, in the 2 years that's been gone, I think you're the only one to have ever asked about it, so I think it was probably a good move.
-
Re: Where is the sortabledataobject Module

6 June 2010 at 8:59pm
Sure man I think it was a good move but did it ever work?
-
Re: Where is the sortabledataobject Module

7 June 2010 at 3:25am
Yeah, it worked great, but the big hurdle was that I wanted to make it easy for people to write the sortable markup structure without having to remember all the specific classnames and attributes that were required, so I made up these new template tags like:
$_BeginSortableUL
<% control SomeSortableItems %>
$LI sortable data $_LI
<% end_control %>
$_EndSortableULWhich, of course, really blurred the lines of the MVC pattern, and was ultimately, just.. gimmicky, I guess.
| 923 Views | ||
|
Page:
1
|
Go to Top |

