View Single Post
  #1  
Old 03-10-2004, 10:21 PM
 
taurox taurox is offline
 

Member
  
Join Date: Dec 2003
Posts: 14
 

Default displaying the Navigation Path as buttons

It turns out my client's customers are too stupid to realize that the navigation path displayed by location.tpl is a set of links, one of which will even get you to the home page (as far as xcart is concerned). Here is an alternate location.tpl that displays each of the links as buttons. The only new variable is $lng.lbl_home whose contents I will leave to your imagination....

Code:
{* $Id: location.tpl,v 1.8 2003/11/17 07:50:47 svowl Exp $ *} {strip} <a href="home.php"> {include file="buttons/button.tpl" button_title=$lng.lbl_home style="button"} </a> {if $last_location ne ""} :: {if $last_url ne ""} <a href="{$last_url}"> {/if} <font class=NavigationPath>{$last_location}</font> {if $last_url ne ""} </a> {/if} {/if} {if $location} :: {section name=position loop=$location} {if $location[position].1 ne "" }<a href="{$location[position].1}"> {include file="buttons/button.tpl" button_title=$location[position].0|escape style="button"}</a> {else} <font class=NavigationPath>{$location[position].0|escape}</font> {/if} {if %position.last% ne "true"}:: {/if} {/section} {/if} {/strip}
Reply With Quote