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

    (@tobiasbg)

    Hi Marc,

    thanks for your post, and sorry for the trouble.

    You are correct, this is indeed caused by the HTML code for the links. As that contains quotation marks, it trips up the ColumnFilterWidgets JS code.

    A workaround for this would be to add extra columns (that will be hidden to the user) that contain the same words again, but without the links.
    You can then hide the new/second column with some CSS and hide the (not working) first dropdown with the datatables_columnfilterwidgets_exclude_columns` parameter that is explained on the Extension’s web page.
    Does this explanation make sense?

    Regards,
    Tobias

    Thread Starter marcbakker84

    (@marcbakker84)

    Yes! Got it.
    Going to try it this afternoon; keep you posted!
    Marc

    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!

    Hi Tobias,

    Sorry, I just edited this post since I found the way to enter custom css commands (and the commands as well) on another one of your posts. Thank you so much!

    Thank you so much for your absolutely amazing work! My group is working on a project using your code and we are going to send you a donation and get some premium features. At the moment we are getting the prototype ready to ‘sell’ before we roll out the full site.

    Thanks a million!

    Thread Starter marcbakker84

    (@marcbakker84)

    Hey Honda,
    i used this:

    .tablepress-id-4 .column-2, .column-7, .column-9 {
    display: none;
    }

    The tablepress id and columns are probably different in your case.
    Marc

    Hi Marc,

    Thanks, that worked!

    Brilliant!

    Plugin Author Tobias Bäthge

    (@tobiasbg)

    Hi,

    just for completeness, the CSS code should have the table ID selector in all three lines! Otherwise, columns 7 and 9 would be hidden in other tables as well:

    .tablepress-id-4 .column-2,
    .tablepress-id-4 .column-7,
    .tablepress-id-4 .column-9 {
      display: none;
    }

    Regards,
    Tobias

    Hi Tobias,

    Thanks, that saved me from potentially pulling my hair out!

    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, DataTables ColumnFilterWidget and HTML links give a sorting problem’ is closed to new replies.