[SOLVED] News Module: Problem displaying categories links list [SOLVED]
Posted: Wed Feb 28, 2007 5:40 pm
Hi all,
Edit: Using news module version 2.2 and cmsms 1.04 everything else seems to working just fine.
I want to display the news categories in specific place in the page.
In a nutshell:
I cannot get the news module categories to display. I have the following 2 snippets of code in my template:
the first one is intended to display all the categories, I have tried several permutations but it looks like this currently:
{cms_module module='News' summarytemplate='categorylist.tpl' number='20'}
the categorylist.tpl looks like this:
{if $itemcount > 0}
{$categorytext}
{foreach from=$items item=entry}
{$entry->name}{$entry->editlink}{$entry->deletelink}
{/foreach}
{/if}
In the page source I can see that it outputs a list ok (the same number as existing categories), but the list items it generates are empty!!
The second snippett on the page is:
{cms_module module='News' makerssbutton='true' number='5' }
this seems to work just fine.
Can anyone tell me what I am doing wrong with displaying my categories? Your help greatfully received, I have looked pretty hard on the forum and keep re reading the manual in case I missed something but I just can't figure it out?
cheers
Simon
Edit: Using news module version 2.2 and cmsms 1.04 everything else seems to working just fine.
I want to display the news categories in specific place in the page.
In a nutshell:
I cannot get the news module categories to display. I have the following 2 snippets of code in my template:
the first one is intended to display all the categories, I have tried several permutations but it looks like this currently:
{cms_module module='News' summarytemplate='categorylist.tpl' number='20'}
the categorylist.tpl looks like this:
{if $itemcount > 0}
{$categorytext}
{foreach from=$items item=entry}
{$entry->name}{$entry->editlink}{$entry->deletelink}
{/foreach}
{/if}
In the page source I can see that it outputs a list ok (the same number as existing categories), but the list items it generates are empty!!
The second snippett on the page is:
{cms_module module='News' makerssbutton='true' number='5' }
this seems to work just fine.
Can anyone tell me what I am doing wrong with displaying my categories? Your help greatfully received, I have looked pretty hard on the forum and keep re reading the manual in case I missed something but I just can't figure it out?
cheers
Simon