WordPress.org

Ready to get started?Download WordPress

Forums

WP Publication Archive
[resolved] Allow browser to open PDF in new window? (2 posts)

  1. evster
    Member
    Posted 1 year ago #

    Hi first off great work on this terrific plugin!

    I noticed that the links to the files are passed through a "openfile.php?" filter which causes them to be automatically downloaded.

    Is there a way I can disable that functionality and instead link straight to the raw file URL with a target="_blank"? That way my PDFs would open within a new browser tab instead of automatically being saved to a "Downloads" folder, requiring users to search for and open the file in order to view it.

    Or perhaps set up both a "Download" and "View" link for each file, with the "Download" link behaving in the default manner, and the "View" link working the way I have specified above?

    I believe this type of edit would require changes to openfile.php, but I'm more of a front-end guy and as such I'm unsure of what exactly to change.

    Any help would be greatly appreciated.

    Thanks!

    http://wordpress.org/extend/plugins/wp-publication-archive/

  2. Eric Mann
    Member
    Plugin Author

    Posted 1 year ago #

    This is a change planned for the next version.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.