We're Moving to a New Support Platform – Starting June 1st!

We’re excited to let you know that starting June 1st, we’ll be transitioning to a new support system that will be available directly on our product websites – Amelia, wpDataTables, and Report Builder. In fact, the new support platform is already live for Amelia and wpDataTables, and we encourage you to reach out to us there.

You'll always be able to reach us through a widget in the bottom right corner of each website, where you can ask questions, report issues, or simply get assistance.

While we still do not offer live support, a new advanced, AI-powered assistant, trained on our documentation, use cases, and real conversations with our team, is there to help with basic to intermediate questions in no time.

We're doing our best to make this transition smooth and hassle-free. After June 1st, this current support website will redirect you to the new "Contact Us" pages on our product sites.

Thanks for your continued support and trust – we’re excited to bring you an even better support experience!

Okay
  Public Ticket #1002414
Dynamic Link
Closed

Comments

  •  2
    Carl Gross started the conversation

    Hi,

    I'm trying to edit the value of each cell in a hyperlink column to add the correct link dynamically (which is different depending on the cell value and table ID). The wpdatatables_filter_link_cell filter looked promising, but it doesn't pass the table ID, which I need. Is there any filter I could use which will pass the table ID and allow the return of the value of each cell in a hyperlink column? 

    Thanks!

  •  1,895
    Miloš replied

    Hi Carl,
    Thank you for your purchase,

    It is a good point and we will see how to pass the table ID to the column-related hooks for future versions to simplify the future customizations.

    For now unfortunately there's no way to do this, the only workaround we can think of is to include some unique placeholder in the cell itself, and then search for it in the wpdatatables_filter_link_cell hook, i.e.,

    to each cell in the table where you want to adjust the content dynamically add something like %%REPLACEME%%

    then in the wpdatatables_filter_link_cell hook you can look for this placeholder and replace it with what you need like:

    if( strpos( $cellValue, '%%REPLACEME%%' ) !== false ) {
        $cellValue = str_replace( '%%REPLACEME%%', 'yourdynamicstring', $cellValue ); } return $cellValue;

    Hope this helps.

    Kind Regards, 

    Miloš Jovanović
    [email protected]

    Rate my support

    Try our FREE mapping plugin! MapSVG - easy Google maps, interactive SVG maps and floor plans, choropleth maps and much more - https://wordpress.org/plugins/mapsvg-lite-interactive-vector-maps/

    wpDataTables: FAQ | Facebook | Twitter | InstagramFront-end and back-end demo | Docs

    Amelia: FAQ | Facebook | Twitter | InstagramAmelia demo sites | Docs | Discord Community

    You can try wpDataTables add-ons before purchasing on these sandbox sites:

    Powerful Filters | Gravity Forms Integration for wpDataTables | Formidable Forms Integration for wpDataTables | Master-Detail Tables

  •  2
    Carl Gross replied

    Thanks for the reply. 

    How would you suggest adding the %%REPLACEME%% text to the cell? Since it is a URL link cell, the 'Display Text Before' and 'Display Text After' options do not seem to work. 

    I am currently using a CONCAT modifier in the query itself, which correctly adds the variable to the original cell value. I then have a wpdatatables_filter_link_cell hook to make the table-dependent edit. However, returning a value using either this notation: http://wpdatatables.com||Check out wpDataTables, or an html-style link (a href), I get a JSON error. What is the proper format for the return value of a wpdatatables_filter_link_cell hook?

    Thanks,

    Carl

  •  2
    Carl Gross replied

    Never mind, there was an error elsewhere causing the JSON issue. I should be able to get this to work now, thanks.