Guest Posted September 4, 2003 Posted September 4, 2003 Top and Catalog in the upper left corner... I didnt see where that is at in the files. Is there any way to add more linked words, catagories..ect to this nav bag?
Guest Posted September 4, 2003 Posted September 4, 2003 This is known as 'breadcrumb' through the files - it shows navigation links as you browse the catalog :shock:
LucyToons Posted September 4, 2003 Posted September 4, 2003 where can I edit where Top goes? as I have my shop in a frame and would like the Top (link back to my homepage) to open the frame page in the frame
Guest Posted September 4, 2003 Posted September 4, 2003 The "breadcrumb" creates a dynamic trail on the fly. The process is governed by this includes/classes/breadcrumb.php Don't mess with this. This is the relavant code on any page that uses the breadcrumb. in this instance: catalog/account.php $breadcrumb->add(NAVBAR_TITLE, tep_href_link(FILENAME_ACCOUNT, '', 'SSL')); The NAVBAR_TITLE can be found and edited in inclused/languages/[language]/account.php The file names, FILENAME_ACCOUNT, are defined in /includes/application_top.php or files.php (depending on your version) As far as "Top" goes this is the "root" page. This will link with your root document as defined in configure.php This is defined in includes/[language].php
Guest Posted September 5, 2003 Posted September 5, 2003 Ok i see what your saying but that is pulling from files already installed.... I was looking to add say <Help Desk> <Tips and Hints> <Forum> on that same line and have it open in the main area or another window.... Sorry for the NOOB questions..... I understand basic HTML and some code... but PHP escapes me
Guest Posted September 5, 2003 Posted September 5, 2003 Not a big problem, just a little tedious. The easiest is to use an existing file as a template. I usually use shipping.php . 1.) change this in shipping.php require(DIR_WS_LANGUAGES . $language . '/' . FILENAME_SHIPPING); $breadcrumb->add(NAVBAR_TITLE, tep_href_link(FILENAME_SHIPPING)); to require(DIR_WS_LANGUAGES . $language . '/' . FILENAME_HELP); $breadcrumb->add(NAVBAR_TITLE, tep_href_link(FILENAME_HELP)); save the file as help_desk.php 2.)Define the new file in application_top.php define('FILENAME_HELP', help_desk.php'); 3.)In includes/languages/english/shipping.php change define('NAVBAR_TITLE', 'Shipping & Returns'); define('HEADING_TITLE', Shipping & Returns'); define('TEXT_INFORMATION', 'Put here your Shipping & Returns information.'); to define('NAVBAR_TITLE', 'Help Desk'); define('HEADING_TITLE', 'Help Desk'); define('TEXT_INFORMATION', 'Whatever HTML you want goes here, even addtional tables or images, just as long as it is formatted properly.'); And that's that. The first time or two you do it it seems like a long drawn out process. But there is not nuch to it, really. Take it slow one step at a time. Just to be on the safe side and make you feel more secure, clone or copy your original shipping.php save it as shipping_temp.php and use this as your source to make the new file.
Guest Posted September 5, 2003 Posted September 5, 2003 details, details... don't forget to save the altered /includes/languages/english/shipping.php as help_desk.php
Guest Posted September 5, 2003 Posted September 5, 2003 If you happen to get errors doing this like I did here is a quick fix: 1.) change this in shipping.php require(DIR_WS_LANGUAGES . $language . '/' . FILENAME_SHIPPING); $breadcrumb->add(NAVBAR_TITLE, tep_href_link(FILENAME_SHIPPING)); to require(DIR_WS_LANGUAGES . $language . '/' . 'help_desk.php') $breadcrumb->add(NAVBAR_TITLE, tep_href_link('help_desk.php')); And by doing this you can skip Step 2 completely (The file that caused my errors when i defined the new FILENAME_) *NOTE: I used help_desk.php just as a reference cause it was the file used in the instructions by willk*[/code]
Guest Posted September 5, 2003 Posted September 5, 2003 did I miss a "define" some where? If I did, I apologize.
Guest Posted September 5, 2003 Posted September 5, 2003 im not sure what the problem is, prob something i did, cause with the code you supplied it seems it would work, pretty much common sense, but either me or a dumb define somewhere in a file you would prob never look in to find it
Recommended Posts
Archived
This topic is now archived and is closed to further replies.