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

Format speedbar with border off on last tab

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 03-13-2009, 06:24 AM
 
leekaye leekaye is offline
 

Newbie
  
Join Date: Mar 2009
Posts: 4
 

Default Format speedbar with border off on last tab

Hi, newbie working on my first cart. I'm trying to mod the speedbar to check for the last tab so I can turn off the right border. Added this IF statement.

{if $speed_bar}
<div class="tabs">
<ul>
{foreach from=$speed_bar item=sb}
{if $smarty.section.sb.last}
<li class="tab_last"><a href="{$sb.link|amp}">{$sb.title}</a></li>
{else}
<li><a href="{$sb.link|amp}">{$sb.title}</a></li>
{/if}
{/foreach}
</ul>

</div>
{/if}


Still showing the last border. Am I formatting this correctly?

TIA!
Lisa
__________________
x-cart 4.2
Reply With Quote
  #2  
Old 03-14-2009, 07:05 AM
  abeight's Avatar 
abeight abeight is offline
 

X-Adept
  
Join Date: Nov 2003
Location: Cleveland, OH
Posts: 479
 

Default Re: Format speedbar with border off on last tab

I'm trying to figure out the same thing. The smarty code that Phil provided in this thread doesn't seem to work in 4.2: http://forum.x-cart.com/showthread.php?t=45183

Hi Lisa!!
__________________
~ Andrea Beight
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design



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 07:15 PM.

   

 
X-Cart forums © 2001-2020