Page 1 of 1
News headlines
Posted: Sat Nov 15, 2008 1:16 pm
by robinmarek
I'm still getting to grips with CMSMS, but my question is this:
I have a page called NEWS with a column on the left displaying the news summaries, and then a column on the right, displaying the full story when clicked.
I want to have the latest 5 headlines showing on the home page in a similar column on the left, and when link is clicked, directs to the full story. Is this possible to do?
Re: News headlines
Posted: Thu Nov 20, 2008 9:48 am
by peterbus
Hi,
I think I use something simular at www.ekodiner.nl In this case it's about coocking recepies.
On the right site you will see a fixed menu with one summary (under the title Nieuwste recept). Click it and the recepy (in your case news article) will show in the main page.
I use code as you see underneath.
{news number="1" category="vleesvisgerechten*, vegetarisch*" detailpage="recepten" moretext="Bekijk het recept"}
number=x (number of summaries you want to show, in your case 5)
category=x (if you use news categories you can choose which categories you want to show)
detailpage=xxx Choose the page on which you want to show the details. If you do not use this tag the details will be shown on the page that you are on at the moment you click the summary.
Does this help?
Re: News headlines
Posted: Thu Nov 20, 2008 12:20 pm
by Zoorlat
Hi robinmarek,
If I understand you correctly, you want to display only the titles of the news on your homepage. This is certainly possible, and easy, to do.
You only need to create your own news summary template. In your template, you can specify exactly what parts of a news item you want to show in the summary mode (date, title, summary, content, etc). For a list of variables you can use in your template, take a look at
http://wiki.cmsmadesimple.org/index.php?title=User_Handbook/Admin_Panel/Content/News/Templates&redirect=no.
Then use your new summary template on your homepage by inserting this code:
{news number="5" detailpage="NEWS" summarytemplate="nameofyourtemplate"}
Good luck!
/Z