CGBlog category description
Posted: Thu Mar 30, 2017 7:13 am
hi,
This time I am trying to display a category description in summary template.
In my browsecat template there is no problem with that:
I pass this parameter globally:
Unfortunately {get_tempalate_vars} return nothing. Description is invisible even here:
Any idea why?
This time I am trying to display a category description in summary template.
In my browsecat template there is no problem with that:
Code: Select all
{function cgblog_browsecat}
<ul class="offerlist">
{foreach $categories as $cid => $rec}
{if $rec.count > 0}
<li><a href="{$rec.url}" title="{$rec.name}">{$rec.name}</a><br>{$rec.description}</li>
{/if}
{/foreach}
</ul>
{/function}
Code: Select all
{assign var=descname value=$rec.description scope=global}Code: Select all
->categories (array) = [
[0] (array) = [
.id (string) = 14
.name (string) = Maroko 26.02-9.03.2017
]