Page 1 of 1

News Summary

Posted: Wed Aug 05, 2009 8:22 am
by Mobile09
Hi all,
I currently have an issue displaying the News Summary on my pages.
Everytime i click a news article from the summary, it displays the news within the page for example:

I'm in a page called 'Community'
I click the summary link for the news article
It gets displayed in Community page not the News page.

Hope this explains my problem.

My summary template is:
{foreach from=$items item=entry}
moreurl}" title="{$entry->title|cms_escape:htmlall}">{$entry->title|cms_escape}{$entry->postdate|cms_date_format}
{eval var=$entry->summary}
{/foreach}
Any help would be appreciated.

Re: News Summary

Posted: Wed Aug 05, 2009 8:31 am
by meiriem
Just read the help of the News module:

Code: Select all

Prarameters
(optional) detailpage="pagealias"
So in your template or page you put something like

Code: Select all

{news detailpage="my-news-page"}

Re: News Summary

Posted: Wed Aug 05, 2009 8:32 am
by Deak
On your content page just do:
{news detailpage="News"}
Replacing "News" with the name of the page you'd like the news summary link to take you to. Make sure your detailpage has a {news} tag on it.

Re: News Summary

Posted: Wed Aug 05, 2009 6:33 pm
by Dr.CSS
Just use the detail page parameter wherever you use the news tag, and the page it goes to doesn't have to have anything in it...

Re: News Summary

Posted: Thu Aug 06, 2009 3:50 pm
by Deak
True, but it is neat to have a proper News section (even if stuff is also dumped out to the homepage).  ;D