Feb 8, 2012 2:57 PM
94 Posts
topic has been resolvedResolved

How can I open a jpg file from a download control in a new window?

  • Category: Other Domino Designer Tooling
  • Platform: Windows
  • Release: 8.5.3
  • Role: Developer
  • Tags:
  • Replies: 2
When a jpg file is clicked in a download control, I want the file to be opened in a new window.  How can I set it to do that?
 
I tried setting the defaultTargetLink to _blank for the custom control, but that didn't work.
 
 
 
Feb 8, 2012 3:50 PM
1 Posts
Re: How can I open a jpg file from a download control in a new window?
Ulrich eknori Krause showed me a trick using Themes:
 
Create a new Theme  ->> extends webstandard

Then, for

   <!-- File Download Link -->
   <control>
      <name>Link.FileDownload</name>
      <property>
         <name>styleClass</name>
         <value>xspLinkFileDownload</value>
      </property>
   </control>

add the property

      <property mode="override">
         <name>target</name>
         <value>_blank</value>
      </property>

Don't forget to modify the app to use the theme.
Feb 8, 2012 5:03 PM
94 Posts
Excellent - THANK YOU!