• Resolved scottiej86

    (@scottiej86)


    I am using the sorting plugin to automatically sort a League Standing Table. The first column is the ranking Column 1-8. Is there any way that I can have that column excluded when the teams/rows are sorted. I would like it to remain static 1-8.

    Or

    Is the only way to just type in the rank based on the order after the fact?

    Thank you and awesome plugin!

    https://wordpress.org/plugins/tablepress/

Viewing 11 replies - 1 through 11 (of 11 total)
  • Plugin Author Tobias Bäthge

    (@tobiasbg)

    Hi,

    thanks for your post, and sorry for the trouble.

    For this, you could take a look at the TablePress Extension from https://tablepress.org/extensions/datatables-counter-column/

    Regards,
    Tobias

    Thread Starter scottiej86

    (@scottiej86)

    Thanks for the reply. I do have the counter column installed, but it is not working. After I enter the data and the teams are reordered on the front end based on points, the ranking column moves along with it.

    this is the line im using:

    [table id=23 row_order=sort row_order_sort_column=8 row_order_sort_direction=DESC datatables_counter_column=true /]

    Plugin Author Tobias Bäthge

    (@tobiasbg)

    Hi,

    Can you please post a link to the page with the table where this problem happens, so that I can take a direct look? Thanks!

    Regards,
    Tobias

    Thread Starter scottiej86

    (@scottiej86)

    Sure, the go to Division 3 and you will see an example:

    http://www.johnsongraphicdesign.net/scsl2016/

    Plugin Author Tobias Bäthge

    (@tobiasbg)

    Hi,

    in the slowpitch standings?

    For the Extension to work, the “Use DataTables” checkbox has to be enabled on the table’s “Edit” screen, and at least the sorting or the filtering functionality.

    There’s however a major issue, probably in your theme: It seems to be loading its own and totally outdated version of the jQuery JS library. This is causing JS script errors, which you can see in the error log console in the browser. For ideas on how to fix that, please see https://tablepress.org/faq/js-functions-not-working/

    Regards,
    Tobias

    Thread Starter scottiej86

    (@scottiej86)

    Thank Tobias I’ll take a look and see how it goes. Much appreciated.

    Plugin Author Tobias Bäthge

    (@tobiasbg)

    Hi,

    no problem, you are very welcome! 🙂 I hope it helps!

    Regards,
    Tobias

    Hi Tobias! I’ve the same problem, the counter column doesn’t work for me. It work only in preview. Can you check? Thanks!

    url:http://www.speeddevils.it/it/campionati/ferrari-599xx-evo-cup/classifica-piloti-ferrari599/

    This is the line im using:

    [table id=13 row_order=sort row_order_sort_column=N row_order_sort_direction=DESC datatables_counter_column=true /]

    Uncaught TypeError: Cannot read property 'style' of undefined
        at Ha (jquery.datatables.min.js:62)
        at ha (jquery.datatables.min.js:48)
        at e (jquery.datatables.min.js:93)
        at HTMLTableElement.<anonymous> (jquery.datatables.min.js:93)
        at Function.each (jquery.js:2)
        at a.fn.init.each (jquery.js:2)
        at a.fn.init.m [as dataTable] (jquery.datatables.min.js:82)
        at a.fn.init.h.fn.DataTable (jquery.datatables.min.js:167)
        at HTMLDocument.<anonymous> (www.speeddevils.it/:445)
        at i (jquery.js:2)
    Ha @ jquery.datatables.min.js:62
    ha @ jquery.datatables.min.js:48
    e @ jquery.datatables.min.js:93
    (anonymous) @ jquery.datatables.min.js:93
    each @ jquery.js:2
    each @ jquery.js:2
    m @ jquery.datatables.min.js:82
    h.fn.DataTable @ jquery.datatables.min.js:167
    (anonymous) @ www.speeddevils.it/:445
    i @ jquery.js:2
    fireWith @ jquery.js:2
    ready @ jquery.js:2
    K @ jquery.js:2
    • This reply was modified 9 years, 1 month ago by andrewfoley.
    • This reply was modified 9 years, 1 month ago by andrewfoley.
    • This reply was modified 9 years, 1 month ago by andrewfoley.
    Plugin Author Tobias Bäthge

    (@tobiasbg)

    Hi,

    Please excuse the long wait for a reply. I just returned from holidays last night and was not able to reply earlier. Thanks for your understanding.

    You are using #colspan# in the table head row of this table. This is not compatible with the DataTables JS library (and thus the counter column). You will need to remove all those #colspan# from the table.

    Regards,
    Tobias

    Thanks so much Tobias! Yes… I had already found the problem, so there are no solutions… 🙁

    Plugin Author Tobias Bäthge

    (@tobiasbg)

    Hi,

    no, sorry 🙁 Using both colspan and the JS features at the same time is not possible.

    Regards,
    Tobias

Viewing 11 replies - 1 through 11 (of 11 total)

The topic ‘Static 1st column for Ranking’ is closed to new replies.