Page 1 of 1
SOLVED : Can't click through to News detail
Posted: Fri Nov 02, 2007 12:40 pm
by Eskymo
Im using CMSMS v1.2 and installed News 2.5.1.
I've added a few fake news storied to the site I am working on and when viewing the news page I see the news story summaries like this:
11/01/07
Yet another groundbreaking story!
Category: General
Posted by: Evie
This is the summary of the groundbreaking story I'm about to post. This is the summary of the groundbreaking story I'm about to post.
[More]
I presume that by clicking on [More] or the News title the full news story would load, but it seems that the page just refresshes itself and nothing loads. see here:
http://www.techsinthecity.co.uk/devsite/index.php?page=news
In the news module I have added a Summary, the Content and marked the story as Published.
What am I doing wrong?
Re: Can't click through to News detail
Posted: Fri Nov 02, 2007 12:43 pm
by RonnyK
How do you call module, please post your {news}-call.
Ronny
Re: Can't click through to News detail
Posted: Fri Nov 02, 2007 12:46 pm
by Eskymo
I've just got {news} where I want it to appear...is that incorrect?
Re: Can't click through to News detail
Posted: Fri Nov 02, 2007 4:22 pm
by Eskymo
I just found this article...
http://wiki.cmsmadesimple.org/index.php/User_Handbook/Admin_Panel/Content/News/Templates/News_Detail_on_New_Page
and realise that my mistake is that I have not created a page for the news pages to display on - duh! So off to sort that out now and hopefully that will fix the problem.
If I want the latest news story to appear on my homepage, how would I call that? at the moment I've added:
to my template and it shows a news story but also has pagination so that you can go through all the news stories. To fix this would I take the pagination element out or is there a different way to just pull in the latest news story?
Re: Can't click through to News detail
Posted: Fri Nov 02, 2007 6:59 pm
by RonnyK
You can either change your summary template, or create a new one and call that specifically.
In Content -> News -> Summary Template
{if $pagecount > 1}
{if $pagenumber > 1}
{$firstpage} {$prevpage}
{/if}
{$pagetext} {$pagenumber} {$oftext} {$pagecount}
{if $pagenumber
{/if}
is the above the logic that makes the pagination work, remove the logic and pagination will be gone.
Ronny
Re: Can't click through to News detail
Posted: Fri Nov 02, 2007 8:35 pm
by Eskymo
BRILLIANT!
I think I'll create a new template just for the homepage. thanks for the tip!
Re: SOLVED : Can't click through to News detail
Posted: Fri Nov 23, 2007 6:49 pm
by kendo451
The real problem is that the news detail will be printed in the {content} tag. If you do not have your {news} inside {content} the detail will not display. This is a bug, if you ask me.
Ken Griffith
Re: SOLVED : Can't click through to News detail
Posted: Fri Nov 23, 2007 7:35 pm
by RonnyK
Ken,
there is a parameter "detailpage" that will push the details to be opened in the content-area, of a specific called page, and thus getting that title as well.
Ronny
Re: SOLVED : Can't click through to News detail
Posted: Sat Dec 01, 2007 12:00 am
by kendo451
I am aware of the detailpage parameter. However, if you try to make a page with a {news} tag and with no content tag, the news detail will not display. It prints the detail in the {content} tag of whatever template page it is called from.