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
How to separate news items
-
cyberman
Re: How to separate news items
Have you tried this?
Code: Select all
{cms_module module='news' category='Archive' number='5'} -
beeswax
Re: How to separate news items
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
thanks for the swift reply. that's solved the problem.
beeswax
-
beeswax
Re: How to separate news items
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
Beeswax,
are you saying that
acts differently than
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
are you saying that
Code: Select all
{cms_module module='news' category='Archive' number='5'}
Code: Select all
{cms_module module='news' category='Archive'}
Ronny
-
beeswax
Re: How to separate news items
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
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
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
thanks for that advice. that's exactly what i was doing wrong. not including the summary made the whole of the news item show.

