Jump to:

23377 Posts in 18296 Topics by 2867 members

General Questions

SilverStripe Forums » General Questions » Problems with sortable tables

General questions about getting started with SilverStripe that don't fit in any of the categories above.

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

Page: 1
Go to End
Author Topic: 718 Views
  • ThereBeDragonsHere
    Avatar
    Community Member
    8 Posts

    Problems with sortable tables Link to this post

    Hello folks,

    I am building an encyclopedic site which has sortable tables as a function and would like to keep this functionality after migrating my site to SilverStripe. However, I have noticed that the javascript code that I had been using does not work correctly in the CMS. This is what my page looks like in the CMS:

    http://ren.cnwcentral.com/silverstripe/cargo/

    As an experiment, I copied the source code of the entire page and made a separate html page. For some reason, the javascript works just fine in the test page but not in the CMS page.

    http://ren.cnwcentral.com/silverstripe/themes/cunardclassic/templates/test.html

    What can I do to get sortable tables? I had been looking through the forum archive and had seen this:

    http://doc.silverstripe.org/tablelistfield#sorting

    But I have to admit that I don't understand what it means. Where do I paste that information into? And what do I need to change in that text to make it apply to my table? Thanks!

    Oh, and my template has a whole host of other problems, as evident from what you can see. Any help on resolving those would be great too.

  • dompie
    Avatar
    Community Member
    88 Posts

    Re: Problems with sortable tables Link to this post

    How did you build up your Table and how do you add new entries? Have you instanciated an xxTable class somewhere in source code?

    718 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.