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

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
Post Reply
theothersimon
Forum Members
Forum Members
Posts: 29
Joined: Wed Apr 26, 2006 5:11 pm

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

Post 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
Last edited by theothersimon on Thu Mar 01, 2007 5:12 pm, edited 1 time in total.
theothersimon
Forum Members
Forum Members
Posts: 29
Joined: Wed Apr 26, 2006 5:11 pm

Re: News Module: Problem displaying categories

Post 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...
Last edited by theothersimon on Thu Mar 01, 2007 5:18 pm, edited 1 time in total.
User avatar
Elijah Lofgren
Power Poster
Power Poster
Posts: 811
Joined: Mon Apr 24, 2006 1:01 am

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

Post by Elijah Lofgren »

Thank you for drawing our attention to this.

Fixed in latest SVN: http://viewsvn.cmsmadesimple.org/viewsv ... w=rev  :)
Note: I don't have time to take on any more projects. I'm quite busy. I may be too busy to reply to emails or messages. Thanks for your understanding. :)
theothersimon
Forum Members
Forum Members
Posts: 29
Joined: Wed Apr 26, 2006 5:11 pm

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

Post by theothersimon »

your welcome, I'm pleased to be useful  ;)
User avatar
requish
Forum Members
Forum Members
Posts: 183
Joined: Sat Jan 24, 2009 3:12 pm

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

Post 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
CMS Made Simple! Best CMS! :)
Post Reply

Return to “CMSMS Core”