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

    (@tobiasbg)

    Hi,

    thanks for your post, and sorry for the trouble.

    No, they are also using the normal TablePress (there’s no paid version yet ?? ).

    To achieve this “View Page” link, you’d have to paste this into the “Custom Commands” text field, located below the table input fields on the table’s “Edit” screen:

    "columnDefs": [ {
        "targets": [ 6 ],
        "render": function ( data, type, row, meta ) {
          return '<a href="'+data+'">View Page</a>';
        }
      }
    ]

    You would also have to turn off the Automatic URL conversion for this to work, i.e. use just the Shortcode [table id=35 /], and the fields in that column must only contain the pure URL for the link (but not yet link HTML code).

    Regards,
    Tobias

    Thread Starter bttrfly0213

    (@bttrfly0213)

    This worked perfectly! Thank you!!

    Plugin Author TobiasBg

    (@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!

    Thread Starter bttrfly0213

    (@bttrfly0213)

    this solution is still working perfectly, but is there anyway to get it to open in a new tab? thx

    Plugin Author TobiasBg

    (@tobiasbg)

    Hi,

    yes, that should be possible, by using the modified line

    return '<a href="'+data+'" target="_blank" rel="noopener">View Page</a>';
    

    in that code.

    Regards,
    Tobias

    Thread Starter bttrfly0213

    (@bttrfly0213)

    worked perfectly! Thank you

    Plugin Author TobiasBg

    (@tobiasbg)

    Hi,

    sure, no problem! Always happy to help!

    Best wishes,
    Tobias
    ?
    P.S.: In case you haven’t, please rate TablePress here in the plugin directory. Thanks!

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘turning long URL hyperlinks into “view page”’ is closed to new replies.