SOLVED : Can't click through to News detail

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
Locked
Eskymo

SOLVED : Can't click through to News detail

Post 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?
Last edited by Eskymo on Fri Nov 02, 2007 8:36 pm, edited 1 time in total.
RonnyK
Support Guru
Support Guru
Posts: 4962
Joined: Wed Oct 25, 2006 8:29 pm

Re: Can't click through to News detail

Post by RonnyK »

How do you call module, please post your {news}-call.

Ronny
Eskymo

Re: Can't click through to News detail

Post by Eskymo »

I've just got {news} where I want it to appear...is that incorrect?
Eskymo

Re: Can't click through to News detail

Post 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:

Code: Select all

{news number="1"}
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?
RonnyK
Support Guru
Support Guru
Posts: 4962
Joined: Wed Oct 25, 2006 8:29 pm

Re: Can't click through to News detail

Post 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
Eskymo

Re: Can't click through to News detail

Post by Eskymo »

BRILLIANT!
I think I'll create a new template just for the homepage. thanks for the tip!
kendo451

Re: SOLVED : Can't click through to News detail

Post 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
RonnyK
Support Guru
Support Guru
Posts: 4962
Joined: Wed Oct 25, 2006 8:29 pm

Re: SOLVED : Can't click through to News detail

Post 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
kendo451

Re: SOLVED : Can't click through to News detail

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

Return to “CMSMS Core”