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.
Display News items on a page
Re: Display News items on a page
Just {news} in the page content should do the trick.
Do you have articles published and with date in the past?
Do you have articles published and with date in the past?
- + - + - + - + - + - + -
LATEST TUTORIAL AT CMS CAN BE SIMPLE:
Migrating Company Directory module to LISE
Migrating Company Directory module to LISE
- + - + - + - + - + - + -
Re: Display News items on a page
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.
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.
- paulbaker
- Dev Team Member
- Posts: 1465
- Joined: Sat Apr 18, 2009 10:09 pm
- Location: Maidenhead, UK
- Contact:
Re: Display News items on a page
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:But what I am trying to do is display all items in the page when opening from the page tab or from an item.
Content -> News -> Options tab -> "Detail View Settings" Default page to use for detail viewsBarrowboy 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?