Page 1 of 1

[SOLVED] Display only single news article

Posted: Tue Mar 22, 2011 12:39 pm
by paperoffice
My website have something like highlight area where are 3 sections to promote products etc. and i would like to display a single news article (summary text) each on them.
There is no need to display anything else than summarytext of each article.

I have published 3 news articles (article ids for example 1,2 and 3).

html:
...
<div id="container">
<div class="item">{news number="1"}</div>
<div class="item">{news number="2"}</div>
<div class="item">{news number="3"}</div>
</div>
...

How can i get a single news article on each div?

btw: {news number="x"} didn't work.

Re: Display only single news article

Posted: Tue Mar 22, 2011 7:16 pm
by RonnyK
First,

I would solve this by modifying the summary-template, where then a loop could be used to give different classes within the foreach...

If you want it as you asked, then you can call {news} 3 times, with logic like....

{news number="1"}
{news number="1" start="1"}
{news number="1" start="2"}

Ronny

Re: Display only single news article

Posted: Fri Apr 01, 2011 5:51 am
by paperoffice
Thanks, that did it!