![]() |
Declaring a Category for Subcategories
Simply put. In the front page of the site I have a "Foreach" pulling from the Categories Array.
Each Category is coming out just fine, with descriptions and pictures and everything. But I'm trying to get the Subcategories to show up for EACH category. Unfortunately, whenever I try to use the syntax for Subcategories [$subcategories] it just pulls up the categories all over again. Image Included. http://frozeninksecret.com/tmp/cat.jpg Code:
{foreach from=$categories item=cat} This is the section of the code it involves. In skin1/customer/homelist.tpl Is there anyway you can load the subcategories within a category for a FOREACH array? |
Re: Declaring a Category for Subcategories
A bump
|
Re: Declaring a Category for Subcategories
I've narrowed down another example of what I could use. This modification that's used on our site takes seven categories and lists their subcategories as well.
I want to modify it so that it can be used to display the subcategories in the new modification. I've narrowed the code down to this in Include/Categories.php Code:
$botcat_items = array(); I'm wondering. Is there a way to use func_query to get all the categories from the SQL database? Is there any reference on how to use func_query, because I went to Smarty's website and looked at the website and didn't find a way to use the function. -_- please help? |
Re: Declaring a Category for Subcategories
Bump
|
All times are GMT -8. The time now is 09:41 AM. |
Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.