View Single Post
  #5  
Old 11-20-2006, 11:44 AM
 
carpeperdiem carpeperdiem is offline
 

X-Guru
  
Join Date: Jul 2006
Location: New York City, USA
Posts: 5,399
 

Default Re: Custom Root Category Template

Oh -- the subcat page.

Yes, an elseif should work...

no guarantees this is the right code, but it should get you close...

in home_main.tpl

Code:
{elseif $main eq "catalog"} {if $category.categoryid == XYZ} {include file="customer/main/new-subcategories-page.tpl" cat=$cat} {elseif $main eq "catalog"} {include file="customer/main/subcategories.tpl" cat=$cat} {/if}

I am not certain if $category.categoryid is legit -- I know that $product.categoryid is legit and I use it (Jon has not ported the template mod to 4.1 yet, so i had to hard code it)

Basically, hard-code a clone of subcategories.tpl to look how you want it (only for one category) and let the elseif find it...

Does this help? I hope so...
__________________
xcart 4.5.4 gold+ w/x-payments 1.0.6; xcart gold 4.4.4
Reply With Quote