Hi
does anyone have any idea why i can download the sortabledataobject module being talked about here.
http://doc.silverstripe.org/modules:sortabledataobject
i really need to use it.
thx
P
This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.
Please use forum.silverstripe.org for any new questions
(announcement).
The forum archive will stick around, but will be read only.
You can also use our Slack channel
or StackOverflow to ask for help.
Check out our community overview for more options to contribute.
Hi
does anyone have any idea why i can download the sortabledataobject module being talked about here.
http://doc.silverstripe.org/modules:sortabledataobject
i really need to use it.
thx
P
It's part of the DataObjectManager package.
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
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.
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
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. :)
Sure man I think it was a good move but did it ever work?
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 %>
$_EndSortableUL
Which, of course, really blurred the lines of the MVC pattern, and was ultimately, just.. gimmicky, I guess.