vivavi Posted November 21, 2006 Posted November 21, 2006 I want to go from my catalog to a HOME page, how I can do a link? thanks Vivi :blush:
ecopeia Posted November 21, 2006 Posted November 21, 2006 put something like this in a tag whereever you want it to be. for example: For an image link: <tr><td valign="left"><?php echo '<a href="http://www.whatever.com">' . tep_image(DIR_WS_IMAGES . 'whateverimageorbanner.gif', 'whatever.com') . '</a>'; ?></td></tr> if you want text, you simply do this: <tr><td valign="left"><?php echo '<a href="http://www.whatever.com">HOME or whatever</a>'; ?></td></tr> Put it whereever you want it to appear. My Contributions
jdvb Posted November 21, 2006 Posted November 21, 2006 and if you want to add that link to your breadcrump trail change the following code in includes/application_top.php: $breadcrumb->add(HEADER_TITLE_CATALOG, tep_href_link(FILENAME_DEFAULT)); to $breadcrumb->add('Home', tep_href_link('YOUR_LINK_TO_HOMEPAGE_HERE')); $breadcrumb->add(HEADER_TITLE_CATALOG, tep_href_link(FILENAME_DEFAULT)); do mind to replace YOUR_LINK_TO_HOMEPAGE_HERE with your link you could also change 'Home' to HEADER_TITLE_TOP (replace the '' too then) you will need to make sure that HEADER_TITLE_TOP is then also defined in your language files. Not sure if that is by default.
vivavi Posted December 6, 2006 Author Posted December 6, 2006 and if you want to add that link to your breadcrump trail change the following code in includes/application_top.php: $breadcrumb->add(HEADER_TITLE_CATALOG, tep_href_link(FILENAME_DEFAULT)); to $breadcrumb->add('Home', tep_href_link('YOUR_LINK_TO_HOMEPAGE_HERE')); $breadcrumb->add(HEADER_TITLE_CATALOG, tep_href_link(FILENAME_DEFAULT)); do mind to replace YOUR_LINK_TO_HOMEPAGE_HERE with your link you could also change 'Home' to HEADER_TITLE_TOP (replace the '' too then) you will need to make sure that HEADER_TITLE_TOP is then also defined in your language files. Not sure if that is by default. Should I change it in CATALOG/ADMIN/INCLUDES too? Thanks Vivi :rolleyes:
jdvb Posted December 6, 2006 Posted December 6, 2006 do not think you will care much about a breadcrump trail in your admin ;) so no need to update that (I for one don't care, all pages I actively use are the adding products and managing orders, and those I and other colegues of mine can find just fine (direct link always nice))
vivavi Posted December 7, 2006 Author Posted December 7, 2006 do not think you will care much about a breadcrump trail in your admin ;) so no need to update that (I for one don't care, all pages I actively use are the adding products and managing orders, and those I and other colegues of mine can find just fine (direct link always nice)) Hmmm, for some reason these breadcrumb are like an extension of the main domain name. Because I checked the TOP one and is repeating the domain twice.Opppps :(
jdvb Posted December 7, 2006 Posted December 7, 2006 tep_href_link('YOUR_LINK_TO_HOMEPAGE_HERE'). the tep_href_link function basicaly adds the "main domain name" prior to 'YOUR_LINK_TO_HOMEPAGE_HERE'. but also adds the conditional osCsid identifier to a link when a cookie is not used. If you would like to specify a different url than the tep_href_link prepends to 'YOUR_LINK_TO_HOMEPAGE_HERE' then you could try and modify the code to: $breadcrumb->add('Home', 'YOUR_LINK_TO_HOMEPAGE_HERE'); $breadcrumb->add(HEADER_TITLE_CATALOG, tep_href_link(FILENAME_DEFAULT)); that should solve your problem. but then no osCsid is added to this url.
vivavi Posted December 7, 2006 Author Posted December 7, 2006 tep_href_link('YOUR_LINK_TO_HOMEPAGE_HERE'). the tep_href_link function basicaly adds the "main domain name" prior to 'YOUR_LINK_TO_HOMEPAGE_HERE'. but also adds the conditional osCsid identifier to a link when a cookie is not used. If you would like to specify a different url than the tep_href_link prepends to 'YOUR_LINK_TO_HOMEPAGE_HERE' then you could try and modify the code to: $breadcrumb->add('Home', 'YOUR_LINK_TO_HOMEPAGE_HERE'); $breadcrumb->add(HEADER_TITLE_CATALOG, tep_href_link(FILENAME_DEFAULT)); that should solve your problem. but then no osCsid is added to this url. THANKS A LOT ! :thumbsup:
Recommended Posts
Archived
This topic is now archived and is closed to further replies.