Page 1 of 1

CGBlog category description

Posted: Thu Mar 30, 2017 7:13 am
by przemo
hi,
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}
I pass this parameter globally:

Code: Select all

{assign var=descname value=$rec.description scope=global}
Unfortunately {get_tempalate_vars} return nothing. Description is invisible even here:

Code: Select all

      ->categories (array) = [
         [0] (array) = [
            .id (string) = 14
            .name (string) = Maroko 26.02-9.03.2017
         ]
Any idea why?