CGBlog category description

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
Post Reply
przemo
Forum Members
Forum Members
Posts: 23
Joined: Mon Dec 30, 2013 12:58 pm

CGBlog category description

Post 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?
Post Reply

Return to “Modules/Add-Ons”