PDFs open in new tab

Posted by Community Admin on 03-Aug-2018 17:03

PDFs open in new tab

All Replies

Posted by Community Admin on 11-Dec-2017 00:00

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...

Posted by Community Admin on 11-Dec-2017 00:00

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.

Posted by Community Admin on 11-Dec-2017 00:00

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?

This thread is closed