So I'm developing a dynamic section that loads all the categories from $categories
And it's going perfectly. It loads the link, it loads the category picture. And I've figured out a way to make it so that the description COULD load next to it and still remain dynamic and neat and pretty.
Der Problem
How do I load the description? I'm pretty sure there's a variable like the variable categoryid. Only I need categorydesc. I tried taking the code from main/subcategories.tpl ( {$current_category.description} )
But unfortunately it doesn't load
Der Info
This is the code I have so far and the example is here (scroll to the bottom)
Code:
<!-- Pulls the bot_cat class to make sure it stays within 900px -->
<div class="bot_cat" align="left">
<!-- Creates an Array from $categories and classifies it as "cat" -->
{foreach from=$categories item=cat}
<!-- Pulls the bot_products class to make sure each item stays in 200px -->
<!-- The link comes from here -->
<a class="bot_products" href="home.php?cat={ $cat.categoryid }">
<!-- The image is pulled from here -->
<img src="{$xcart_web_dir}/image.php?id={ $cat.categoryid }&type=C" alt="" />
<!-- Ending statements -->
</a>
{/foreach}
</div>
Class bot_cat is just to make sure it wraps at 900px
Class bot_products is the size 200px 12px margin for both sides
(completely irrelevant to the problem)
Der Request
I want the text to load to the right of the Category Images.
But I can't seem to load the descriptions... At all. Not even a little.
Does anyone know what variable string it might be? or another solution?
Also... Could I find this if I had DB access? (my boss isn't letting me have that access, but he might let me if I tell him I have to find it from there.)