ich habe folgendes Problem:
Ich möchte auf meiner Shopseite den Button im "top_nav" nämlich Home durch einen anderen Link ersetzen. Weiß aber leider nicht wie ich das machen soll!?
Es soll direkt ein Link zur Hauptseite eingebunden werden (http://www.meinedomain.de/index.php).
So sieht die index.html aus dem Template vom Shop aus:
Code: Alles auswählen
{config_load file="$language/lang_$language.conf" section="index"}
<div id="page_margins">
<div id="page">
<div id="header">
<div id="topnav">
{* start: skip link navigation *}
<a class="skip" href="#navigation" title="Direkt zur Navigation springen">Zur Navigation springen</a><span class="hideme">.</span>
<a class="skip" href="#content" title="Direkt zum Inhalt springen">Zum Inhalt springen</a><span class="hideme">.</span>
{* end: skip link navigation *}
</div>
<a href="{href_link page=$smarty.const.FILENAME_DEFAULT}"><img src="{$tpl_path}img/yaml-title-xtc.jpg" alt="{$store_name}" id="companyLogo" /></a>
</div>
{* begin: main navigation #nav *}
<div id="nav">
<a id="navigation" name="navigation"></a>
{php}
// Current Link Hack - by Reinhard Hiebl
$cur_link = explode('/', $_SERVER['PHP_SELF']);
$cur_link = array_pop($cur_link);
if (strpos($cur_link, '?') === true ) {
$pos = strpos($cur_link, '?', 1);
if ($pos) {
$cur_link = substr($cur_link, 0, $pos);
}
}
{/php}
<div id="nav_main">
<ul>
<li{php} echo $current = $cur_link=='http://www.d-r-computer-tech.de/index.php' ? ' id="current"' : ''; {/php}><a href="{href_link page=$smarty.const.FILENAME_DEFAULT}"><span>Home</span></a></li>
{if $account}
{php} if (isset($_SESSION['customer_id'])) { {/php}
<li{php} echo $current = $cur_link=='logoff.php' ? ' id="current"' : ''; {/php}><a href="{$logoff}"><span>{#link_logoff#}</span></a></li>
{php} } {/php}
{/if}
{if $account}
<li{php} echo $current = $cur_link=='account.php' ? ' id="current"' : ''; {/php}><a href="{$account}"><span>{#link_account#}</span></a></li>
{/if}
<li{php} echo $current = $cur_link=='shopping_cart.php' ? ' id="current"' : ''; {/php}><a href="{$cart}"><span>{#link_cart#}</span></a></li>
<li{php} echo $current = $cur_link=='checkout_shipping.php' ? ' id="current"' : ''; {/php}><a href="{$checkout}"><span>{#link_checkout#}</span></a></li>
<li><a href="http://forum.yaml.de/" target="_blank"><span>Forum</span></a></li>
</ul>
</div>
</div>
{* end: main navigation *}
{* begin: content area #main *}
<div id="main">
<div id="teaser" class="clearfix">
{$navtrail}
</div>
{* begin: #col1 - first float column *}
<div id="col1">
<div id="col1_content" class="clearfix">
{$box_CATEGORIES}
{$box_ADD_QUICKIE}
{$box_CONTENT}
{$box_INFORMATION}
{$box_LAST_VIEWED}
{$box_REVIEWS}
{$box_SEARCH}
{$box_SPECIALS}
</div>
</div>
{* end: #col1 *}
{* begin: #col2 second float column *}
<div id="col2">
<div id="col2_content" class="clearfix">
{$box_CART}
{$box_LOGIN}
{$box_ADMIN}
{$box_LIVE_SHOPPING}
{$box_NEWSLETTER}
{$box_BESTSELLERS}
{$box_WHATSNEW}
{$box_INFOBOX}
{$box_CURRENCIES}
{$box_LANGUAGES}
{$box_MANUFACTURERS_INFO}
{$box_MANUFACTURERS}
</div>
</div>
{* end: #col2 *}
{* begin: #col3 static column *}
<div id="col3">
<div id="col3_content" class="clearfix">
{* skip anchor: content *}
<a id="content" name="content"></a>
{$main_content}
</div>
{* IE column clearing *}
<div id="ie_clearing"> </div>
</div>
{* end: #col3 *}
</div>
{* end: #main *}
{* begin: #footer *}
<div id="footer">
Based on <a href="http://www.yaml.de" target="_blank">YAML</a> | © by <a href="http://www.zerosoftware.de/" target="_blank">Björn Teßmann </a> ( <a href="http://www.zs-ecommerce.com/" target="_blank">xt:Commerce Template by www.zs-eCommerce.com</a> )
</div>
{* end: #footer *}
</div>
</div>
Code: Alles auswählen
<?php
/* -----------------------------------------------------------------------------------------
$Id: index.php 1016 2009-11-19 22:50:47Z DocOlson $
XT-Commerce - community made shopping
http://www.xt-commerce.com
Copyright (c) 2003 XT-Commerce
-----------------------------------------------------------------------------------------
based on:
(c) 2000-2001 The Exchange Project (earlier name of osCommerce)
(c) 2002-2003 osCommerce(default.php,v 1.84 2003/05/07); www.oscommerce.com
(c) 2003 nextcommerce (default.php,v 1.13 2003/08/17); www.nextcommerce.org
Released under the GNU General Public License
-----------------------------------------------------------------------------------------
Third Party contributions:
Enable_Disable_Categories 1.3 Autor: Mikel Williams | mikel@ladykatcostumes.com
Customers Status v3.x (c) 2002-2003 Copyright Elari elari@free.fr | www.unlockgsm.com/dload-osc/ | CVS : http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/elari/?sortby=date#dirlist
Released under the GNU General Public License
---------------------------------------------------------------------------------------*/
include ('includes/application_top.php');
// create smarty elements
$smarty = new Smarty;
// include boxes
require(DIR_FS_CATALOG . 'templates/' . CURRENT_TEMPLATE . '/source/boxes.php');
// the following cPath references come from application_top.php
$category_depth = 'top';
if ( isset($cPath) && xtc_not_null($cPath) ) {
$sql = "SELECT count(*) AS total
FROM " . TABLE_PRODUCTS_TO_CATEGORIES . " ptc
INNER JOIN " . TABLE_PRODUCTS . " p
ON p.products_id = ptc.products_id
WHERE ptc.categories_id = '" . $current_category_id . "'
AND p.products_status = 1";
$res = xtDBquery($sql);
$cateqories_products = xtc_db_fetch_array($res, true);
if ( $cateqories_products['total'] > 0 ) {
$category_depth = 'products'; // display products
} else {
$sql = "SELECT count(*) AS total
FROM " . TABLE_CATEGORIES . "
WHERE parent_id = '" . $current_category_id . "'
AND categories_status = 1";
$res = xtDBquery($sql);
$category_parent = xtc_db_fetch_array($res, true);
if ( $category_parent['total'] > 0 ) {
$category_depth = 'nested'; // navigate through the categories
} else {
$category_depth = 'products'; // category has no products, but display the 'no products' message
}
}
}
require(DIR_WS_INCLUDES . 'header.php');
include(DIR_WS_MODULES . 'default.php');
$smarty -> assign('language', $_SESSION['language']);
$smarty -> caching = 0;
if ( !defined(RM) ) {
$smarty -> load_filter('output', 'note');
}
$smarty -> load_filter('output', 'trimwhitespace');
$smarty -> display(CURRENT_TEMPLATE . '/index.html');
include('includes/application_bottom.php');
Wenn ich genau den Quellcode bearbeiten könnte wäre es einfach...nur ich weiss nicht wie ich mir genau diesen Code anzeigen lassen kann, um ihn zu bearbeiten!
Ich hoffe ihr könnt mir helfen!
Danke.
LG
Barny_Gumble