News Summary

For discussion and questions related to CMS Specific templates and stylesheets (CSS), and themes. or layout issues. This is not a place for generic "I don't know CSS issues"
Locked
Mobile09

News Summary

Post 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.
User avatar
meiriem
New Member
New Member
Posts: 5
Joined: Wed Apr 23, 2008 10:25 am
Location: Utrecht, Netherlands

Re: News Summary

Post 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"}
Deak

Re: News Summary

Post 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.
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am
Location: Arizona

Re: News Summary

Post 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...
Deak

Re: News Summary

Post by Deak »

True, but it is neat to have a proper News section (even if stuff is also dumped out to the homepage).  ;D
Locked

Return to “Layout and Design (CSS & HTML)”