More in this section
Forums / General Discussions / PDFs open in new tab

PDFs open in new tab

The forums are in read-only mode. In case that you want to directly contact the Progress Sitefinity team use the support center. In our Google Plus group you can find more than one thousand Sitefinity developers discussing different topics. For the Stack Overflow threads don’t forget to use the “Sitefinity” tag.
3 posts, 0 answered
  1. Jon Jones
    Jon Jones avatar
    19 posts
    Registered:
    13 Aug 2003
    11 Dec 2017
    Link to this post

    Is there an option in Sitefinity 9.2 to have all links to PDFs in a document library use a target="_blank" so that they open in a new tab?  We have a javascript based solution but was wondering if there was something builtin to Sitefinity to do this.

    Thanks...

  2. Darrin Robertson
    Darrin Robertson avatar
    105 posts
    Registered:
    18 Jul 2004
    11 Dec 2017
    Link to this post

    Hi Jon

    The solution here is to edit the widget templates that display your pdf links. 

    I'm with you, I always open pdf's in a new tab.

    With the built in Sitefinity widgets there is an option to open in a new tab. But to avoid people forgetting or to enforce it you can edit the template (Web Forms or Feather) and just hard code it. For your own widget developments you can of course do the same.

  3. Jon Jones
    Jon Jones avatar
    19 posts
    Registered:
    13 Aug 2003
    11 Dec 2017 in reply to Darrin Robertson
    Link to this post
    Darrin, we are using Feather.  I haven't seen an option that is there by default to even manually change it to open in a new tab.  Where is this option that you are talking about?
3 posts, 0 answered