• Resolved ansager1989

    (@ansager1989)


    hello,

    first of all, great plugin, maybe the best on wordpress all time πŸ™‚

    Got a problem with the ColumnFilterWidgets.
    If the selected word from the dropdown contains a html link in the cell its not shown on table.

    example on the link to my the page, if you select a “track” its not shown, cause all Tracknames have a link to another page.

    any fix for that?

    best regards

    ansager

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

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author TobiasBg

    (@tobiasbg)

    Hi,

    thanks for your post, and sorry for the trouble.

    Your observation is correct. The cause for this are the quotation marks in the link HTML code. Unfortunately, the external ColumnFilterWidgets JavaScript code does not like this (when it uses them in the dropdown), due to the HTML structure.

    Your best chance here is to create a duplicate column of that Track column with just the link text as content (so no actual link). This duplicated column can then be hidden from the visitor, e.g. with CSS code, but at the same time you can hide the not-working dropdown using the exclude Shortcode parameter mentioned on the Extension’s web page.

    Regards,
    Tobias

    Thread Starter ansager1989

    (@ansager1989)

    thx alot its working, never thought about that lol

    πŸ˜‰

    for others who got same problem

    make 2. column with text (no Link) and hide it (plugin options):

    .tablepress-id-18 .column-2 {
    	display: none;
    }

    exclude now the 1. column (with link) from dropdown by addin this to shortcode:
    datatables_columnfilterwidgets_exclude_columns=1

    best regards

    ansager

    Plugin Author TobiasBg

    (@tobiasbg)

    Hi,

    yes, that’s exactly what I meant πŸ™‚
    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 3 replies - 1 through 3 (of 3 total)
  • The topic ‘ColumnFilterWidgets dont show text which has html link’ is closed to new replies.