WordPress.org

Ready to get started?Download WordPress

Forums

table sort and search not working (6 posts)

  1. ashishishere
    Member
    Posted 1 year ago #

    Hi,

    I have used tables plugin for my site.wanted to have search and sort functionalities as well.
    Problem:when i am selecting library:datatables or datatable+table sort,neither sort is working nor search bar is appearing.
    When im selecting Table sorter or Table sorter extended,Sort option is working but search box still not appearing.
    I have created a test post for the same where guys can have a look and help me out:
    http://testpunch.hostei.com/wordpress/?p=59

    SOS.......

  2. TobiasBg
    Member
    Posted 1 year ago #

    Hi,

    can you please change to the "DataTables" library for this test site? Only that library actually has the search feature. And to find out why it is not working, I need to see it in action on the site.

    Regards,
    Tobias

  3. ashishishere
    Member
    Posted 1 year ago #

    @TobiasBg:Changed it to DataTables[recommended].
    Now you may check....

  4. TobiasBg
    Member
    Posted 1 year ago #

    Hi,

    ah, thanks for that!

    The reason for this problem is that your server is configured, so that it does not allow text files to be retrieved by the browser. Specifically, WP-Table Reloaded needs to load a translation text file via JavaScript, but for the file http://testpunch.hostei.com/wordpress/wp-content/plugins/wp-table-reloaded/languages/datatables/lang-en_US.txt the server returns a "404 Not Found" error, due to the server configuration.

    Therefore, your server configuration will need to be changed to also allow text files. You'll probably need to contact your webhost about this.
    Another idea might be to switch to the TablePress plugin from http://wordpress.org/extend/plugins/tablepress/ which will be the official and designated successor of WP-Table Reloaded.
    TablePress does this differently, so that this file loading is not necessary, and due to that, the error will not happen.

    Regards,
    Tobias

  5. ashishishere
    Member
    Posted 1 year ago #

    Hello Tobias,

    A quick help needed..
    So i am using the Tablepress Plugin now!
    Thanks for that!!!

    Now,i want to add new rows and show them as latest,so they should appear as top rows rather than at the end whenever im adding them.
    currently insert new rows makes it add at the end!
    is there a way to insert at top or in between??
    Is there a way to do that??

    Idea is to add rows as first one rather than last or else by default when user visits the page,he should see the latest one added as first row[first row i mean after headers]

    Thanks
    AKS

  6. TobiasBg
    Member
    Posted 1 year ago #

    Hi,

    yes, that is possible. Just click the checkbox below the header row and click the "Insert rows" button after the "Selected rows" text.
    Another idea would be to add new rows (to the end) and move them (by drag and drop via the row number) to the top.

    Regards,
    Tobias

Topic Closed

This topic has been closed to new replies.

About this Topic