• Resolved Joe Westcott

    (@redredweb)


    Hello, thank you, Tobias, for making TablePress! Our nontechnical staff used to manually embed table code on our webpages — yikes — and TablePress will save them hours of work.

    We’d like to use the pagination feature, but it’s not working as expected.

    If we enable pagination, the option to “Show 10 entries” appear above our table, but the table shows all rows, not just 10.

    In the browser developer console, I see this error:

    TypeError: n[q] is undefined
    jquery.datatables.min.js:66:164

    I’ve created a test site where all plugins are disabled except for TablePress, and the theme is the stock TwentyTwenty theme, but the problem remains.

    Thank you for any help!

    The page I need help with: [log in to see the link]

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Tobias B?thge

    (@tobiasbg)

    Hi,

    thanks for your question, and sorry for the trouble.

    The cause for this is the use of #colspan# to merge cells in the header row of the table. Unfortunately, the DataTables JS library that is used for the pagination feature, is not compatible with tables that have such merged/connected cells. Therefore, you must remove all #colspan# and #rowspan# from the table if you want to use any of the JavaScript features. Sorry for not having better news here.

    Regards,
    Tobias

    Thread Starter Joe Westcott

    (@redredweb)

    I see. Would it be possible to disable the pagination option automatically for tables that use colspan and rowspan in the body?

    This would prevent people from expecting the pagination feature to work in cases when it’s not feasible.

    Thank you for considering it.

    Plugin Author Tobias B?thge

    (@tobiasbg)

    Hi,

    if you use the “colspan” and “rowspan” buttons below the table, this is actually what happens ?? The “Use DataTables” checkbox is turned off automatically. Unfortunately, it’s not possible (in an efficient way) to also do this when someone manually types in the keywords, or to prevent that a user re-enables that checkbox.

    Regards,
    Tobias

    Thread Starter Joe Westcott

    (@redredweb)

    Thank you, Tobias. If you ever decide to build out features like the ones mentioned in this ticket, my organization would be interested in a paid recurring license / subscription, if you ever set up such a thing. I’m sure that others would be interested in a paid Pro license as well.

    In the meantime, thank you for building TablePress, and for doing all that you do.

    Joe

    Plugin Author Tobias B?thge

    (@tobiasbg)

    Hi Joe,

    I might decide to offer a Pro version at one point, but so far, there are specific plans ??
    Of course, support is still greatly appreciated at https://tablepress.org/donate/.

    Best wishes,
    Tobias

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘n[q] is undefined, rows setting does not work as expected’ is closed to new replies.