• Resolved munasur12

    (@munasur12)


    Hi,
    I am using your plugin with the ColumnFilterWidget extension on multiple tables (2 tables) on the same page. The issue I am having is the extension only works for the table at the top and not a bottom. When I switch the postions of the tables the one that was working does not and visa-versa. Here is the custom code I have for the tables:
    1)Table 1: “oColumnFilterWidgets”: {“aiExclude”: [ 0,1,3 ], “bGroupTerms”:true,”sSeparator”: “,” }
    2)Table 2: “oColumnFilterWidgets”: {“aiExclude”: [ 0,1,2],”bGroupTerms”: true,”sSeparator”: “,”}

    Here is how I inputted the shortcode on the page:
    [table id=”1″ datatables_columnfilterwidgets=”true”/]
    >[table id=”2″ datatables_columnfilterwidgets=”true”/]

    Thank You in advance for your help.

    https://www.ads-software.com/plugins/tablepress/

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

    (@tobiasbg)

    Hi,

    thanks for your post, and sorry for the trouble.

    I assume that there’s a script error somewhere. Do you see anything in the error log console in the browser?

    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 munasur12

    (@munasur12)

    Tobias,

    Thank you for the reply. Here is a link to the a page on the site that has both tables https://beta.csb.lamp.utoronto.ca/63259-2/. I looked at the javascript console and there was no error. Thanks again for the help.

    Plugin Author Tobias B?thge

    (@tobiasbg)

    Hi,

    I’m not exactly sure, but this might be related to the

    "sSeparator": ","

    parameter.
    Can you try that with an extra space, i.e.

    "sSeparator": ", "

    ?
    Otherwise, can you please try it without any extra parameters, and then re-add them one by one, to find out when exactly this issue starts appearing?

    Regards,
    Tobias

    Thread Starter munasur12

    (@munasur12)

    Tobias,

    I tried your suggestion and am getting the same issue. What I am finding is that the second table does not seem to filter. However, if I filter the first table and then filter the second it works. Is there a file that needs updated when having multiple tables on a single page?

    Plugin Author Tobias B?thge

    (@tobiasbg)

    Hi,

    I just noticed that you are using a modified version of the ColumnFilterWidgets JS file (so that the selected option remains selected instead of being added below the dropdown).
    I assume that that modification is somehow broken when there are two tables on the page.
    Can you therefore please try again with the unmodified JS file?

    Regards,
    Tobias

    Thread Starter munasur12

    (@munasur12)

    Tobias,
    Thanks for all your help, it was the JS. I am wondering if there is a way to not have the selected field under the dropdown?

    Plugin Author Tobias B?thge

    (@tobiasbg)

    Hi,

    you could hide the selected term below the dropdown, but then the user would not have a chance to remove that to change his selection.
    So, if you don’t want the selected terms there, you’ll need to stick to the modified JS file — but it will need to be extended so that it can handle multiple tables on a page.

    Regards,
    Tobias

    Thread Starter munasur12

    (@munasur12)

    Thanks a lot Tobias!!!

    Plugin Author Tobias B?thge

    (@tobiasbg)

    Hi,

    no problem, you are very welcome! Good to hear that this helped!

    Best wishes,
    Tobias

    P.S.: In case you haven’t, please rate TablePress here in the Plugin Directory. Thanks!

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Tablepress with ColumnFilterWidget extension and multiple tables’ is closed to new replies.