Page 1 of 1

[SOLVED] News Module: Problem displaying categories links list [SOLVED]

Posted: Wed Feb 28, 2007 5:40 pm
by theothersimon
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

Re: News Module: Problem displaying categories

Posted: Thu Mar 01, 2007 3:30 pm
by theothersimon
Thanks to calguy1000 for his help.

The answer is:

The following info on the news module help is slightly misleading: 

browsecat="true" - Shows a browseable category list.  it doesnt.

whereas,  browsecat="1"  will output a list of categories.

I guess true in this case mean 1 as opposed to 0 (?) but not being a real programmer or even a fake one I didnt consider this interpretation of the word true.. :)

Hope someone finds this useful...

Re: [SOLVED] News Module: Problem displaying categories links list [SOLVED]

Posted: Fri Mar 02, 2007 1:56 am
by Elijah Lofgren
Thank you for drawing our attention to this.

Fixed in latest SVN: http://viewsvn.cmsmadesimple.org/viewsv ... w=rev  :)

Re: [SOLVED] News Module: Problem displaying categories links list [SOLVED]

Posted: Fri Mar 02, 2007 7:16 am
by theothersimon
your welcome, I'm pleased to be useful  ;)

Re: [SOLVED] News Module: Problem displaying categories links list [SOLVED]

Posted: Fri Nov 26, 2010 11:36 am
by requish
Hi,

Please help me with browse cat with pretty URLs.

CMS generate links like that

Code: Select all

index.php?mact=News,cntnt01,default,0&cntnt01category=EN*&cntnt01detailpage=28&cntnt01category_id=3&cntnt01returnid=28&hl=en
With this link I can't seen any list of selected category, but only all of articles. I want to see articles only from 'x' category.  ???

BTW. I have MLE 1.6.7