View Single Post
  #10  
Old 06-21-2006, 01:37 PM
 
maximbc maximbc is offline
 

Newbie
  
Join Date: May 2006
Posts: 6
 

Default

I don`t know if this is right. This is the original code:

Code:
{* $Id: categories.tpl,v 1.26 2005/11/17 06:55:37 max Exp $ *} {capture name=menu} <table cellpadding="0" cellspacing="0" {if $main eq "catalog" and $current_category.category eq ""}class="CategoriesCustomBox"{else}width="100%"{/if}> <tr> <td valign="top"> {if $active_modules.Fancy_Categories ne ""} <table cellpadding="0" cellspacing="0" {if $main eq "catalog" and $current_category.category eq ""}class="CategoriesCustomBoxFC"{else}width="150"{/if}> <tr> <td valign="top"> {include file="modules/Fancy_Categories/categories.tpl"} {assign var="fc_cellpadding" value="0"} </td> </tr> </table> {else} {if $config.General.root_categories eq "Y"} {foreach from=$categories item=c} {if $main eq "catalog" and $current_category.category eq ""} {capture name=bullet}{$c.category}{/capture}{include file="customer/main/bullet.tpl" content=$smarty.capture.bullet welc=true} {else} {capture name=bullet}{$c.category}{/capture}{include file="customer/main/bullet.tpl" content=$smarty.capture.bullet catmenu=true} {/if} {/foreach} {else} {foreach from=$subcategories item=c} <a href="home.php?cat={$c.categoryid}" class="VertMenuCatItems">{$c.category} </a> {/foreach} {/if} {/if} {/if} </td> </tr> <tr> <td valign="bottom"> <table width="100%" cellpadding="14" cellspacing="0" align="center"> <tr> <td> {if $js_enabled} {$lng.txt_javascript_disabled} {else} {$lng.txt_javascript_enabled} {/if} </td> </tr> </table> </td> </tr> </table> {/capture} { include file="menu.tpl" dingbats="dingbats_categorie.gif" menu_title=$lng.lbl_categories menu_content=$smarty.capture.menu cellpadding=$fc_cellpadding style="Categories"}

and that`s how it looks after I added a static page called "forum" into my categoris menu.

Code:
{* $Id: categories.tpl,v 1.26 2005/11/17 06:55:37 max Exp $ *} {capture name=menu} <table cellpadding="0" cellspacing="0" {if $main eq "catalog" and $current_category.category eq ""}class="CategoriesCustomBox"{else}width="100%"{/if}> <tr> <td valign="top"> {if $active_modules.Fancy_Categories ne ""} <table cellpadding="0" cellspacing="0" {if $main eq "catalog" and $current_category.category eq ""}class="CategoriesCustomBoxFC"{else}width="150"{/if}> <tr> <td valign="top"> {include file="modules/Fancy_Categories/categories.tpl"} {assign var="fc_cellpadding" value="0"} </td> </tr> </table> {else} {if $config.General.root_categories eq "Y"} {foreach from=$categories item=c} {if $main eq "catalog" and $current_category.category eq ""} {capture name=bullet}{$c.category}{/capture}{include file="customer/main/bullet.tpl" content=$smarty.capture.bullet welc=true} {else} {capture name=bullet}{$c.category}{/capture}{include file="customer/main/bullet.tpl" content=$smarty.capture.bullet catmenu=true} {/if} {/foreach} {else} {foreach from=$subcategories item=c} <a href="home.php?cat={$c.categoryid}" class="VertMenuCatItems">{$c.category} </a> {/foreach} {/if} {if $main eq "catalog" and $current_category.category eq ""} {capture name=bullet}Forum{/capture}{include file="customer/main/bullet.tpl" content=$smarty.capture.bullet welc=true} {else} {capture name=bullet}Forum{/capture}{include file="customer/main/bullet.tpl" content=$smarty.capture.bullet catmenu=true} {/if} {/if} </td> </tr> <tr> <td valign="bottom"> <table width="100%" cellpadding="14" cellspacing="0" align="center"> <tr> <td> {if $js_enabled} {$lng.txt_javascript_disabled} {else} {$lng.txt_javascript_enabled} {/if} </td> </tr> </table> </td> </tr> </table> {/capture} { include file="menu.tpl" dingbats="dingbats_categorie.gif" menu_title=$lng.lbl_categories menu_content=$smarty.capture.menu cellpadding=$fc_cellpadding style="Categories"}

I added this part after the </if> statement.

Code:
{if $main eq "catalog" and $current_category.category eq ""} {capture name=bullet}Forum{/capture}{include file="customer/main/bullet.tpl" content=$smarty.capture.bullet welc=true} {else} {capture name=bullet}Forum{/capture}{include file="customer/main/bullet.tpl" content=$smarty.capture.bullet catmenu=true} {/if}

they only problem I have is that when you click on a cattegory all the arrows dissapear as you can see it on my website: www.h-source.com
__________________
www.h-source.com

version: x-cart-4.1.1gold
Reply With Quote