Thread: Embed Sitemap
View Single Post
  #2  
Old 10-07-2011, 12:31 AM
 
makenoiz makenoiz is offline
 

Advanced Member
  
Join Date: Jun 2011
Posts: 35
 

Default Re: Embed Sitemap

OK so Ive been working on this and I have a code problem. if you look at the code below you will see "debug 22" I cant seem to get into the foreach look. Is my syntax for the foreach loop incorrect? I do have subcats.....

{foreach from=$categories item=subcat name=subcategories}
debug<a href="home.php?cat={$subcat.categoryid}">{$subcat. category|escape}</a>

{if $subcat.subcats gt 0}
debug 22
__________________
X-Cart version 4.4.3
Reply With Quote