Display News items on a page

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
Post Reply
Barrowboy
Forum Members
Forum Members
Posts: 223
Joined: Mon Dec 16, 2013 4:09 pm

Display News items on a page

Post by Barrowboy »

Can someone explain how to show news items on a page.

My page is 'Latest News' and I have tried adding.
{news number='10' showall="0" category='General'}

But nothing shows, I am sure this must be something quite simple.

Thanks.
User avatar
Rolf
Power Poster
Power Poster
Posts: 7825
Joined: Wed Apr 23, 2008 7:53 am
Location: The Netherlands
Contact:

Re: Display News items on a page

Post by Rolf »

Just {news} in the page content should do the trick.
Do you have articles published and with date in the past?
- + - + - + - + - + - + -
LATEST TUTORIAL AT CMS CAN BE SIMPLE:
Migrating Company Directory module to LISE
- + - + - + - + - + - + -
Image
Barrowboy
Forum Members
Forum Members
Posts: 223
Joined: Mon Dec 16, 2013 4:09 pm

Re: Display News items on a page

Post by Barrowboy »

Hi Dev

Thanks for your reply.

Firstly I have this code in the template sidebar div {news number='10'} and the news items display ok, clicking on one opens the Latest News page showing the item clicked on.
But what I am trying to do is display all items in the page when opening from the page tab or from an item. At the moment I only have four items all with dates. This is the latest code in the page content box I have at the moment. {news category='General' template='Summary_Simplex'} I tried pretty much every combination but nothing seems to work.

What I also don't understand is how the items in the sidebar open the news page am I working on the wrong page? The more I try the more confusing it becomes.
The 'Latest News' page alias is 'news'.
Like I have said I am sure there is a simple answer.

Thanks in advance for your time.
User avatar
paulbaker
Dev Team Member
Dev Team Member
Posts: 1465
Joined: Sat Apr 18, 2009 10:09 pm
Location: Maidenhead, UK
Contact:

Re: Display News items on a page

Post by paulbaker »

Barrowboy wrote:But what I am trying to do is display all items in the page when opening from the page tab or from an item.
Not quite sure I understand what you're after. The code you posted {news category='General' template='Summary_Simplex'} will show just items in the General category, if you have news items in another category they won't show.
Barrowboy wrote:What I also don't understand is how the items in the sidebar open the news page am I working on the wrong page?
Content -> News -> Options tab -> "Detail View Settings" Default page to use for detail views
Post Reply

Return to “Modules/Add-Ons”