Hi everybody,
i´m running into a strange output since update to 1.6:
I built following query within an exp:weblog:category_heading to output next level of subcategories of a given category (short version):
{exp:weblog:category_heading weblog="{my_weblog}"}
<h2>{category_name}</h2>
<p>Subcategories: <br />
{exp:query sql="SELECT cat_name, cat_id FROM exp_categories WHERE parent_id = '{category_id}' "} <br />
{if count > 1}, {/if}<br />
<a href="http://{path={my_template_group}/C{cat_id}}">{cat_name}</a><br />
{/exp:query}</p>
<p>{/exp:weblog:category_heading}That looked like:
Since update 1.6, the query runs okay so far, but “cat_name” and “cat_id” does not have any value. Paradoxically it counts the subcategories right.
In the html-source that looks like:
<a href="http://anything/journal/C/"></a>,
<a href="http://anything/journal/C/"></a>Template-Debugging doesn´t show any malfunction.
If i´m running the exp:query outside “category_heading” pair, all is okay. But i need it in, to give
parent_id = '{category_id}'.
Maybe i´m missing something? Any clue?
thanks for help, Geri