Results 1 to 5 of 5

How do I open a link (into) a new window

This is a discussion on How do I open a link (into) a new window within the osCmax v1.7 Discussion forums, part of the osCmax v1.7 Forums category; Hi guys... As the subject says, during my ripping and tweaking I think I took away the syntax for the ...

      
  1. #1
    Member
    Join Date
    Nov 2003
    Location
    Greece
    Posts
    69
    Rep Power
    0


    Default How do I open a link (into) a new window

    Hi guys...

    As the subject says, during my ripping and tweaking I think I took away the syntax for the (printable catalog) to open in a new window.

    In boxes/search.php I have:

    $boxContent .= '<a href="' . tep_href_link(FILENAME_CATALOG_PRODUCTS_WITH_IMAGE S, '', 'NONSSL') . '">' . BOX_CATALOG_PRODUCTS_WITH_IMAGES . '</a><br>';

    How can I make it open in a new window.

    Thanks for your guruing.....and by the way...with regards to another topic, I think in 10 years from now, OScommerce might be viewed as a masterpice or atleast the start of one!



    Van..

  2. #2
    Member
    Join Date
    Nov 2003
    Location
    Greece
    Posts
    69
    Rep Power
    0


    Default

    see http://www.insituconservation.com/catalog/
    -------------------------
    In quick search box:

    Printable catalog

  3. #3
    New Member
    Join Date
    Jan 2004
    Posts
    23
    Rep Power
    0


    Default Quick fix

    The idea of Printable catalog is for customers to print a catalog with out your site header, footer, left and right columns, which does not happen with the default setup of 1.5 max.

    A quick and easy fix is to edit the file:

    catalog/catalog_products_with_images.php and change the line

    require(DIR_WS_TEMPLATES . TEMPLATENAME_MAIN_PAGE);

    to

    require(DIR_WS_TEMPLATES . TEMPLATENAME_POPUP);

    Printable catalog will now open with out your site header, footer, left and right columns.

  4. #4
    osCMax Developer

    michael_s's Avatar
    Join Date
    Jul 2002
    Location
    Phoenix, AZ
    Posts
    20,750
    Rep Power
    573


    Default

    SWILLIAMS, vandiike, Yes, printable catalog added to the BTS system in max so it would be easy to add a new template of your making. It is up to you to create a new template for the printable catalog, we cannot do everything for you...

    You could create a new template called template_page.tpl.php and define it as TEMPLATENAME_PRINTABLE. Then you could make it look like anything you want. That is the whole purpose of the BTS template system, easy page additions. Using this feature, you could make a really cool printable catalog, with great page layout, design etc, and have it look totally different from your website.
    Michael Sasek
    osCMax Developer


    osCmax Installation Service
    - Have our professionals install osCmax on your server - same day service!
    osCmax 2.5 User Manual - the must have beginners guide to osCmax v2.5

    Stay Up To Date with everything osCMax:
    Free osCmax Newsletters - Security notices, New Releases, osCMax News
    osCmax on Twitter - Up to the minute info as it happens. Know it first.

    osCmax Documentation

  5. #5
    Member
    Join Date
    Nov 2003
    Location
    Greece
    Posts
    69
    Rep Power
    0


    Default

    Williams, thanks for tip. it worked good.
    In order to have the new window effect I also edited

    include/boxes/search.php <- where my link appears in the page

    $boxContent .= '<a href="' . tep_href_link(FILENAME_CATALOG_PRODUCTS_WITH_IMAGE S, '', 'NONSSL') . '" target="_blank">' . BOX_CATALOG_PRODUCTS_WITH_IMAGES . '</a><br>';

    now there is a case for designing the template_productcat.php

    Thanks for your time..

    Mike

Similar Threads

  1. how do i set a link active, if the link links to actual page
    By poschiman in forum osCommerce 2.2 Modification Help
    Replies: 0
    Last Post: 06-03-2006, 04:10 PM
  2. Mopics Window Resize over 'close window' text
    By ericcech in forum osCommerce 2.2 Modification Help
    Replies: 0
    Last Post: 03-08-2006, 06:42 PM
  3. Anyway to get a popup window from FCK editor??
    By Redeye_Joe in forum osCMax v2 Features Discussion
    Replies: 1
    Last Post: 03-07-2006, 12:00 PM
  4. Scrollable popup window
    By fuzzyphil in forum osCMax v1.7 General Mods Discussion
    Replies: 0
    Last Post: 10-10-2005, 03:39 AM
  5. popup window too small
    By jlee in forum osCommerce 2.2 Modification Help
    Replies: 1
    Last Post: 02-18-2003, 12:24 PM

Bookmarks

Posting Permissions

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