Select the search type
  • Site
  • Web
Search
You are here:  Support/Forums
Support

Bring2mind Forums

PDF documents open *directly* in the DMX search results page; rather than in a new window.
Last Post 04/15/2013 2:09 PM by Peter Donker. 1 Replies.
Sort:
PrevPrev NextNext
You are not authorized to post a reply.
Author Messages
KCB
New Member
New Member
Posts:6


--
04/09/2013 9:25 PM
We'd like to have the PDF document results open in a new window and not take over the search results page.

(This is of particular importance because we use an iFrame at the moment to combine search systems. Since the DMX search isn't a part of the DNN search results i.e. iSearchable)

Peter Donker
Veteran Member
Veteran Member
Posts:4536


--
04/15/2013 2:09 PM
The behavior of the links on the search results page can be changed with a little tuning. In search.ascx you'll spot DownloadUrl(DataBinder.Eval(Container, "DataItem.EntryId")) which produces the url. You can override the download behavior by adding "method=attachment" to this. So it becomes:

DownloadUrl(DataBinder.Eval(Container, "DataItem.EntryId")) & "&method=attachment"

Peter

You are not authorized to post a reply.