Jump to:

10930 Posts in 2613 Topics by 1810 members

All other Modules

SilverStripe Forums » All other Modules » Where is the sortabledataobject Module

Discuss all other Modules here.

Moderators: martimiz, Sean, biapar, Willr, Ingo, swaiba, simon_w

Page: 1
Go to End
Author Topic: 1081 Views
  • patjnr
    Avatar
    Community Member
    101 Posts

    Where is the sortabledataobject Module Link to this post

    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

  • UncleCheese
    Avatar
    4085 Posts

    Re: Where is the sortabledataobject Module Link to this post

    It's part of the DataObjectManager package.

  • patjnr
    Avatar
    Community Member
    101 Posts

    Re: Where is the sortabledataobject Module Link to this post

    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

  • UncleCheese
    Avatar
    4085 Posts

    Re: Where is the sortabledataobject Module Link to this post

    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.

  • patjnr
    Avatar
    Community Member
    101 Posts

    Re: Where is the sortabledataobject Module Link to this post

    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

  • UncleCheese
    Avatar
    4085 Posts

    Re: Where is the sortabledataobject Module Link to this post

    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.

  • patjnr
    Avatar
    Community Member
    101 Posts

    Re: Where is the sortabledataobject Module Link to this post

    Sure man I think it was a good move but did it ever work?

  • UncleCheese
    Avatar
    4085 Posts

    Re: Where is the sortabledataobject Module Link to this post

    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.

    1081 Views
Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.