clint6998 Posted August 17, 2012 Share Posted August 17, 2012 I have added new buttons to the header for the remainder of the site that is NOT in osC. <div id="mainNav"> <?php echo tep_draw_button(HEADER_TITLE_TAG_HOME, 'home', tep_href_link(FILENAME_)) . tep_draw_button(HEADER_TITLE_TAG_ABOUT, 'lightbulb', tep_href_link(FILENAME_)) . tep_draw_button(HEADER_TITLE_TAG_CLASSES, 'calculator', tep_href_link(FILENAME_)) . tep_draw_button(HEADER_TITLE_TAG_PRODUCTS, 'tag', tep_href_link(FILENAME_DEFAULT)) . tep_draw_button(HEADER_TITLE_TAG_NEWS, 'script', tep_href_link(FILENAME_)) . tep_draw_button(HEADER_TITLE_TAG_CONTACT, 'mail-closed', tep_href_link(FILENAME_)); ?> </div> <div id="headerShortcuts"> <?php echo tep_draw_button(HEADER_TITLE_CART_CONTENTS . ($cart->count_contents() > 0 ? ' (' . $cart->count_contents() . ')' : ''), 'cart', tep_href_link(FILENAME_SHOPPING_CART)) . tep_draw_button(HEADER_TITLE_CHECKOUT, 'triangle-1-e', tep_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL')) . tep_draw_button(HEADER_TITLE_MY_ACCOUNT, 'person', tep_href_link(FILENAME_ACCOUNT, '', 'SSL')); if (tep_session_is_registered('customer_id')) { echo tep_draw_button(HEADER_TITLE_LOGOFF, null, tep_href_link(FILENAME_LOGOFF, '', 'SSL')); } ?> </div> How do I get them to redirect to a file outside of the osC folder? Example, I need the first button to go to root/index.php. How do I define this? I know I have to do something with the tep_href_link(FILENAME_) but I dont know what. Can someone please help me with this? Thanks, Clint Link to comment Share on other sites More sharing options...
clint6998 Posted August 17, 2012 Author Share Posted August 17, 2012 RESOLVED catalog/includes/filenames.php define('FILENAME_TAG_HOME', '../index.php'); define('FILENAME_TAG_ABOUT', '../about.php'); define('FILENAME_TAG_CLASSES', 'index.php?cPath=22'); define('FILENAME_TAG_NEWS', '../news.php'); define('FILENAME_TAG_CONTACT', '../contact.php'); catalog/includes/languages/english.php define('HEADER_TITLE_TAG_HOME', 'Home'); define('HEADER_TITLE_TAG_ABOUT', 'About Us'); define('HEADER_TITLE_TAG_CLASSES', 'Classes'); define('HEADER_TITLE_TAG_PRODUCTS', 'Products'); define('HEADER_TITLE_TAG_NEWS', 'News'); define('HEADER_TITLE_TAG_CONTACT', 'Contact'); catalog/includes/header.php <?php echo tep_draw_button(HEADER_TITLE_TAG_HOME, 'home', tep_href_link(FILENAME_TAG_HOME)) . tep_draw_button(HEADER_TITLE_TAG_ABOUT, 'lightbulb', tep_href_link(FILENAME_TAG_ABOUT)) . tep_draw_button(HEADER_TITLE_TAG_CLASSES, 'calculator', tep_href_link(FILENAME_TAG_CLASSES)) . tep_draw_button(HEADER_TITLE_TAG_PRODUCTS, 'tag', tep_href_link(FILENAME_DEFAULT)) . tep_draw_button(HEADER_TITLE_TAG_NEWS, 'script', tep_href_link(FILENAME_TAG_NEWS)) . tep_draw_button(HEADER_TITLE_TAG_CONTACT, 'mail-closed', tep_href_link(FILENAME_TAG_CONTACT)); ?> Link to comment Share on other sites More sharing options...
Guest Posted August 18, 2012 Share Posted August 18, 2012 Hi Clint, Thanks for putting this up as i need to do the same soon ! Gr, Rob Link to comment Share on other sites More sharing options...
clint6998 Posted August 21, 2012 Author Share Posted August 21, 2012 just a newbie trying to find his place in osC...lol Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.