How to separate news items

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.
Locked
beeswax

How to separate news items

Post 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
cyberman

Re: How to separate news items

Post by cyberman »

Have you tried this?

Code: Select all

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

Re: How to separate news items

Post 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
beeswax

Re: How to separate news items

Post 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.
RonnyK
Support Guru
Support Guru
Posts: 4962
Joined: Wed Oct 25, 2006 8:29 pm

Re: How to separate news items

Post 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
beeswax

Re: How to separate news items

Post 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.
RonnyK
Support Guru
Support Guru
Posts: 4962
Joined: Wed Oct 25, 2006 8:29 pm

Re: How to separate news items

Post 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
Last edited by RonnyK on Mon Feb 26, 2007 3:43 pm, edited 1 time in total.
beeswax

Re: How to separate news items

Post 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.
Locked

Return to “CMSMS Core”