Results 1 to 4 of 4

Thread: Open Search Results in A New Window

  1. #1
    Join Date
    Jun 2005
    Posts
    9

    Default Open Search Results in A New Window

    Hi, On one of your Zoom search example websites at this address:
    http://www.casey.vic.gov.au on the search results page there is an (open in new window) option hyperlink to the right of the 'open in same window' link. The user has the choice to open a new window, whilst retaining the original search results window.

    Can you enlighten me as to how I can customise my search results page to exactly match theirs in respect of the 'open in new window' option?
    I'm running the PHP version.

    Thank you in advance.

  2. #2
    Join Date
    Dec 2004
    Location
    Sydney
    Posts
    4,228

    Default

    I think the City of Casey made a custom change to the ASP script to add the additional link in the search results. If you know ASP it should be a simple 1 or 2 line change.

    -----
    David

  3. #3
    Join Date
    Jun 2005
    Posts
    9

    Default

    Thanks for your reply.

    As I said in my post I'm running the PHP Version.

    Is it a simple 1 or 2 line customise for that version or can it only be applied to the ASP Version?

    If it can be done in PHP can anyone give me some pointers as to which file to add the code to? I'm presuming that part of the code would include the target="_blank" attribute in it.

    Thanks again in advance.

  4. #4
    Join Date
    Dec 2004
    Location
    Sydney
    Posts
    4,228

    Default

    If you just want the results to open in a new window, this is easy.

    In the Zoom configuration window, on the "Search page" tab, check the box "New Window".

    If you want two links, one to open the document in the same window and a second additional link to open in a new window, then this requires some custom code.

    If you want to make this custom change, you'll need to add code around lines 1465 to 1470 of the PHP script (V4.2 build 1012). Around this line,
    print "<a href=\"".$urlLink."\"" . $target . ">";

    But we also don't support custom scripts. (People tend to introduce new bugs as they change the scripts).

    ----
    David

Similar Threads

  1. Displaying Search Results in a seperate window
    By HHP2K in forum Zoom Search Engine V4 (Old Version)
    Replies: 1
    Last Post: 07-18-2006, 01:59 AM
  2. open only certain file types in a new window
    By amyb in forum Zoom Search Engine V4 (Old Version)
    Replies: 1
    Last Post: 06-07-2006, 01:02 AM
  3. Links open office docs in native application window
    By Matt in forum Zoom Search Engine V4 (Old Version)
    Replies: 1
    Last Post: 04-21-2006, 01:52 AM
  4. Results page in new window
    By Tony in forum Zoom Search Engine V4 (Old Version)
    Replies: 3
    Last Post: 10-25-2005, 08:35 AM
  5. Open in new window search option
    By Bill in forum Zoom Search Engine V4 (Old Version)
    Replies: 6
    Last Post: 07-11-2005, 12:05 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •