View Single Post
  #3  
Old 08-02-2012, 08:06 AM
 
Marc Washburn Marc Washburn is offline
 

Advanced Member
  
Join Date: May 2004
Posts: 72
 

Default Re: How to add extra Title Bars under Categories?

Quote:
Originally Posted by cflsystems
You can do this with orderby (pos) for categories and some if statements in the template. If orderby > xxx or < yyy do this or do that...

Ok, so here is the 'categories.tpl' file:

Quote:
{*
$Id: categories.tpl,v 1.3.2.2 2010/12/17 15:12:37 aim Exp $
vim: set ts=2 sw=2 sts=2 et:
*}
{if $categories_menu_list ne '' or $fancy_use_cache}
{capture name=menu}

{if $active_modules.Flyout_Menus}

{include file="modules/Flyout_Menus/categories.tpl"}
{assign var="additional_class" value="menu-fancy-categories-list"}

{else}

<ul>
{foreach from=$categories_menu_list item=c name=categories}
<li{interline name=categories}><a href="home.php?cat={$c.categoryid}" title="{$c.category|escape}">{$c.category|amp}</a></li>
{/foreach}
</ul>

{assign var="additional_class" value="menu-categories-list"}

{/if}

{/capture}
{include file="customer/menu_dialog.tpl" title=$lng.lbl_categories content=$smarty.capture.menu}
{/if}

My Smarty programming is rather weak (good with html & css though).

Can anyone lend a quick hand?

thanks,
__________________
Marc Washburn
Natural Bath & Body Shop
P.O. Box 2555
Tarpon Springs, FL 34688
marc@naturalbathandbodyshop.com
www.naturalbathandbodyshop.com

Mod Newbie
X-cart 4.4.5 - Now Live !!! Hurray!
X-cart 4.2.1 - Delicae Gourmet
Reply With Quote