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

Hi

Can someone tell me what to code would look like for the proper way to link to a new page I created without losing the osCsid?

 

The page I created is this one. I created it using the Extra pages-info box w/ admin contrib. This is the link to the page I created: http://www.taxisupplies.ie/catalog/extra_info_pages.php?pages_id=4&osCsid=9icu80kmmatl1253mot3pfnl07

Thanks

Link to comment
Share on other sites

Jim,

 

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

 

 

 

Chris

Link to comment
Share on other sites

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>

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

  • 4 weeks later...

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

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...