Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsForm and ListForm and ListURL to open in new window.URL to open in new window.
Previous
 
Next
New Post
6/16/2011 9:25 PM
 

Hi,

 I have the following table as below:

 

The listings in the ‘Event’ column are linked to PDF files (made up of Calculated, Text and URL. columns) Currently, once an Event is clicked, the PDF opens in the same browser window.

Is there any way to have the PDF’s open in a new browser window?

I don’t mind editing source files if this is the only way to achieve the result.

 

Any help would be greatly appreciated.
Many thanks.

 
New Post
6/17/2011 6:34 PM
 
If your table is within a module, then in your dnn html/text editor, the hyperlink manager (chain-link-icon) for the event should let you set the Target to New Window.  I haven't used all the editors but all the ones I've used supported that.

Editing the PDFs won't do it (if that's the source file you are talking about).  The returned html or script controls that (tells the user's browser).

Bob H.
 
New Post
6/17/2011 10:02 PM
 
I’m creating a ‘table’ with the Form and List module.
Source files – I meant editing the source files/code of the actual Form and List module.

Any help would be greatly appreciated.

 
New Post
6/18/2011 10:44 AM
 
The Form and List module 5.1.3 allows an admin, under settings, to allow the selection [check box] to spec that a file to be opened in a new window.

When allowed, and checked on upload/selection, this gets recorded for each linked file in the UserDefinedData table in the db under the FieldValue for the UserDefinedFieldID and UserDefinedRowID

A FileID=xyz  (x,y,z being integers) with nothing following opens in the same window.

FileID=xyz|options=W   forces that file to be opened in a new window.

Changing the data where you want seems better than forcing all.

This was arrived at empirically; perhaps a developer could confirm.

Bob H.
 
New Post
7/21/2011 12:07 PM
Accepted Answer 
rt rt wrote:
I’m creating a ‘table’ with the Form and List module.
Source files – I meant editing the source files/code of the actual Form and List module.

Any help would be greatly appreciated.

 Maybe try this.

URL Location - URL
Document - Download

Calculated Column Expression:
'<a href="' + URL Location + Document +'" target="_blank" >' + Document + '</a>'

after the href=, it's a double-quote followed by a single quote; " & '
And before the target= part, it's a single-quote followed by a double-quote; ' & "

Hope this helps.. -jeff


 
Previous
 
Next
HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsForm and ListForm and ListURL to open in new window.URL to open in new window.


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out