X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Dev Questions (https://forum.x-cart.com/forumdisplay.php?f=20)
-   -   displaying the Navigation Path as buttons (https://forum.x-cart.com/showthread.php?t=6664)

taurox 03-10-2004 10:21 PM

displaying the Navigation Path as buttons
 
It turns out my client's customers are too stupid :x 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}




janetallard 03-11-2004 07:47 AM

Hi-
What versions will this work with?

Thanks,
Janet

groovico 03-11-2004 09:08 AM

You can turn them to buttons using CSS too by setting the css for the links to have a border and fixed width.

taurox 03-18-2004 10:52 PM

what versions this will work with -- hmmm
 
At first, I was going to say that since this was a template, it should work with anything, but who knows if it happens to call something that didn't exist before 3.5.1 (what I'm using)???

taurox 03-18-2004 10:54 PM

using css
 
Quote:

Originally Posted by groovico
You can turn them to buttons using CSS too by setting the css for the links to have a border and fixed width.


But wouldn't you still have to tack on the round ends? Seems easier my way....

B00MER 03-20-2004 07:44 PM

:arrow: http://www.albin.net/CSS/RoundedCorners/


All times are GMT -8. The time now is 05:23 AM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.