WordPress.org

Ready to get started?Download WordPress

Forums

WP-Table Reloaded
[resolved] URL to Link Conversion extension (11 posts)

  1. greencode
    Member
    Posted 2 years ago #

    Firstly, this is a great addition to the plugin but is there any way of getting links to open in a new window with target="_blank"?

    http://wordpress.org/extend/plugins/wp-table-reloaded/

  2. TobiasBg
    Member
    Plugin Author

    Posted 2 years ago #

    Hi,

    thanks for your post.

    No, unfortunately, this is not possible, as the links are created by a WordPress function that does not have a filter possibility currently :-(
    It would be necessary to rewrite that function to have a target attribute.

    As a side note, allow me the remark, that target="_blank" is actually a bad thing, and should not be used in my opinion. It takes control away from the user. Users can already open links in new windows/tabs in all browsers, and that's what should be the correct way used.

    Regards,
    Tobias

  3. greencode
    Member
    Posted 2 years ago #

    Thanks for the reply.

    Have to disagree with the use of target = blank though as this is often necessary if you wish to link your clients to a site with further information but actually still make it easy for them to get back to your site. A lot of people have absolutely no idea how to open links in new windows and so often have to be guided.

  4. greencode
    Member
    Posted 2 years ago #

    What I've ended up doing is creating the following script:

    $('.wp-table-reloaded a').attr('target', '_blank');

    so this will then open any link within the WP Table Reloaded table in a new window.

  5. TobiasBg
    Member
    Plugin Author

    Posted 2 years ago #

    Hi,

    that's a good solution with JavaScript! Nice find!

    Best wishes,
    Tobias

  6. greencode
    Member
    Posted 2 years ago #

    Thanks Tobias and more importantly thanks for a great time saving plugin!

  7. TobiasBg
    Member
    Plugin Author

    Posted 2 years ago #

    Hi,

    sure, no problem! You are very welcome! :-)

    Best wishes,
    Tobias

  8. jsedrick
    Member
    Posted 2 years ago #

    I love the plug-in! Great job. How do I created linked text within a column?

    What I want to do is link text within each column to different PDFs

  9. greencode
    Member
    Posted 2 years ago #

  10. jsedrick
    Member
    Posted 2 years ago #

    Does this allow me to browse to PDFs in my media files or do I have to know the path?

  11. TobiasBg
    Member
    Plugin Author

    Posted 2 years ago #

    Hi,

    thanks for your question.

    That extension that greencode mentions will convert the URLs in table cells to clickable links. This might not be what you want.

    If you have the PDFs in the WordPress Media library, you can simply use the "Insert image" button below the table cells to insert a link to it.

    Regards,
    Tobias

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic