Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

what is the proper way to link to a page?


katman1971

Recommended Posts

Posted

Jim,

 

You are not leaving the site to view that new page, you should not lose the OSCID when it is viewed.

 

 

 

Chris

Posted

Jim,

 

You are not leaving the site to view that new page, you should not lose the OSCID when it is viewed.

 

 

 

Chris

 

So, is it ok to link to that page from my nav bar like this?:

 

<td><a href="http://www.taxisupplies.ie/catalog/extra_info_pages.php?pages_id=4&osCsid=9icu80kmmatl1253mot3pfnl07"><img src="images/header1_05.jpg" alt="" width="149" height="49" border="0"></a></td>

Posted

So, is it ok to link to that page from my nav bar like this?:

 

<td><a href="http://www.taxisupplies.ie/catalog/extra_info_pages.php?pages_id=4&osCsid=9icu80kmmatl1253mot3pfnl07"><img src="images/header1_05.jpg" alt="" width="149" height="49" border="0"></a></td>

 

 

You should be using tep_href function to create links...something like

 

<a href="<?php echo tep_href_link(FILENAME_DEFAULT, 'cPath=50'); ?>" title="My new page">My new page</a>

 

Replace DEFAULT with the filename defined in filenames.php for your extra info pages contribution and replace cPath=50 with your pages_id=4

 

Also see Spooks' thread in tips and tricks on how to preserve the osCsid.

  • 4 weeks later...
Posted

Hi

Since this is the correct way to link to a page:

<a href="<?php echo tep_href_link(FILENAME_DEFAULT, 'cPath=50'); ?>" title="My new page">My new page</a>

 

does the same rule apply when linking to a video (on my server)? I think this is how I should link to the video: (but I'm not sure if it is the correct format):

 

<a href="http://taxisupplies.ie/store/catalog/media/test/test.html" onclick="window.open(this.href,\'\',\'resizable=no,location=no,menubar=no,scrollbars=no,status=no,toolbar=no,fullscreen=yes,dependent=no,status\'); return false"><img height="18" width="54" border="0" align="middle" src="/store/catalog/userfiles/../images/play_video.jpg" alt="" /></a>

 

Thanks

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...