katman1971 Posted June 17, 2010 Posted June 17, 2010 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
Guest Posted June 17, 2010 Posted June 17, 2010 Jim, You are not leaving the site to view that new page, you should not lose the OSCID when it is viewed. Chris
katman1971 Posted June 17, 2010 Author Posted June 17, 2010 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>
Hotclutch Posted June 17, 2010 Posted June 17, 2010 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.
katman1971 Posted July 9, 2010 Author Posted July 9, 2010 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
Recommended Posts
Archived
This topic is now archived and is closed to further replies.