Page 1 of 1

How to separate news items

Posted: Thu Feb 22, 2007 11:49 am
by beeswax
I have a problem, I'm using the latest build 1.0.4 and starting from scratch to rebuild a school website. I've created 2 categories of news, Latest Newsletter and Archive. I assumed that by using the code on a page
{cms_module module='news' news_category='Archive' number='5'} it would only call the items in the Archive category. However, it seems to be just showing the the news from the sidebar. I can't show you the page at the moment as I'm working on it locally. Thanks

Re: How to separate news items

Posted: Thu Feb 22, 2007 12:05 pm
by cyberman
Have you tried this?

Code: Select all

{cms_module module='news' category='Archive' number='5'} 

Re: How to separate news items

Posted: Thu Feb 22, 2007 12:26 pm
by beeswax
I had to do a double-take at first as I thought the code you'd posted was the same as the one I was having trouble with.
thanks for the swift reply. that's solved the problem.
beeswax

Re: How to separate news items

Posted: Mon Feb 26, 2007 1:13 pm
by beeswax
unfortunately, this has now raised another problem. I've created a link to a page called Archived News, where I want to show all of the old Newsletters. The first archived newsletter comes up as the summary page, but all the others (only two so far) show the full news item, rather than providing a link to the full news item.

Re: How to separate news items

Posted: Mon Feb 26, 2007 1:28 pm
by RonnyK
Beeswax,

are you saying that

Code: Select all

{cms_module module='news' category='Archive' number='5'} 
acts differently than

Code: Select all

{cms_module module='news' category='Archive'} 
I use the second line to have all items shown on a page, while the first one shows up on the main page and only shows the last 5 posts.

Ronny

Re: How to separate news items

Posted: Mon Feb 26, 2007 1:58 pm
by beeswax
I've only used the first line of code, and what was happening when I went to the Archived Newsletters page was that the top Newsletter showed just a summary, and was a link to the full article, but that the next Newsletter below that showed the full article as well as the link to the full article.

Re: How to separate news items

Posted: Mon Feb 26, 2007 3:21 pm
by RonnyK
beeswax,

did you enter summary-data for the other entries. I can imagine that a link to the full news-entry is shown if only a title and content are filled (both mandatory) and that title and summary is shown if summary is filled (optionally). I personally don't fill the summary, so I only see the subject and can click to the detail (=content).

So in short; I think that not the (full)-content is shown, but the summary along with the subject. You can either leave the summary blank, as it isn't an required field, or change your summary-template not to show the summary!

So if you don't fill the summary-area in the news-entry, it'll show only the subject on the page with a link to the content.

Ronny

Re: How to separate news items

Posted: Tue Feb 27, 2007 1:09 pm
by beeswax
thanks for that advice. that's exactly what i was doing wrong. not including the summary made the whole of the news item show.