Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls

displaying the Navigation Path as buttons

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions
 
Thread Tools Search this Thread
  #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
  #2  
Old 03-11-2004, 07:47 AM
 
janetallard janetallard is offline
 

Senior Member
  
Join Date: Sep 2003
Location: Antioch, CA
Posts: 127
 

Default

Hi-
What versions will this work with?

Thanks,
Janet
__________________
Hosted by www.Hostasaurus.com
X-Cart Pro v.3.4.8 (Unix & Mac X)
PHP 4.3.4
Mac OS 10.2.8 (Jaguar)

Tired of beating your head against your PC?
Get a Mac!
Reply With Quote
  #3  
Old 03-11-2004, 09:08 AM
  groovico's Avatar 
groovico groovico is offline
 

X-Man
  
Join Date: Apr 2003
Location: Firetanksoftware.com
Posts: 2,326
 

Default

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

Used by X-carters the world over:
Marketing Manager Pro Bundle For X-cart
Featured Product Manager for X-cart
Feed manager pro for X-cart

http://www.firetanksoftware.com

Celebrating 7 Years of providing quality X-cart Add ons and X-cart Mods for x-cart 3.X to X-cart 4.4.X
Reply With Quote
  #4  
Old 03-18-2004, 10:52 PM
 
taurox taurox is offline
 

Member
  
Join Date: Dec 2003
Posts: 14
 

Default 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)???
Reply With Quote
  #5  
Old 03-18-2004, 10:54 PM
 
taurox taurox is offline
 

Member
  
Join Date: Dec 2003
Posts: 14
 

Default 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....
Reply With Quote
  #6  
Old 03-20-2004, 07:44 PM
  B00MER's Avatar 
B00MER B00MER is offline
 

X-Guru
  
Join Date: Sep 2002
Location: Keller, TX (Cart-Lab.com)
Posts: 3,165
 

Default

http://www.albin.net/CSS/RoundedCorners/
__________________
Cart-Lab - 100+ Social Bookmarks for X-Cart.
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


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

   

 
X-Cart forums © 2001-2020