[Solved] News Module Stopped Working
[Solved] News Module Stopped Working
Hi there,
Recently installed CMS made simple, and have been modifiying the look and feel of the site. Now, the news module is not working. When I click on links, they are like the examples below, but do not actually load a page:
http://www.psychlosport.co.uk/index.php ... eturnid=39
I re-installed the newsmodule, and still have the same problem. Has anyone else experienced this, is it fixable?
Thanks
Tina
Recently installed CMS made simple, and have been modifiying the look and feel of the site. Now, the news module is not working. When I click on links, they are like the examples below, but do not actually load a page:
http://www.psychlosport.co.uk/index.php ... eturnid=39
I re-installed the newsmodule, and still have the same problem. Has anyone else experienced this, is it fixable?
Thanks
Tina
Last edited by tina29 on Mon Nov 03, 2008 11:37 pm, edited 1 time in total.
Re: News Module Stopped Working
Please post the news tag from your page template, so we can see what parameters you're sending and also post your news detail template.
Nullig
Nullig
Re: News Module Stopped Working
Hi Nullig,
My news summary template is as follows:
My detail template is:
My news summary template is as follows:
Code: Select all
<!-- Start News Display Template -->
{if $pagecount > 1}
<p>
{if $pagenumber > 1}
{$firstpage} {$prevpage}
{/if}
{$pagetext} {$pagenumber} {$oftext} {$pagecount}
{if $pagenumber < $pagecount}
{$nextpage} {$lastpage}
{/if}
</p>
{/if}
{foreach from=$items item=entry}
<div class="NewsSummary">
{if $entry->formatpostdate}
<div class="NewsSummaryPostdate">
{$entry->formatpostdate}
</div>
{/if}
<div class="NewsSummaryLink">
{$entry->titlelink}
</div>
<div class="NewsSummaryCategory">
{$category_label} {$entry->category}
</div>
{if $entry->author}
<div class="NewsSummaryAuthor">
{$author_label} {$entry->author}
</div>
{/if}
{if $entry->summary}
<div class="NewsSummarySummary">
{eval var=$entry->summary}
</div>
<div class="NewsSummaryMorelink">
[{$entry->morelink}]
</div>
{else if $entry->content}
<div class="NewsSummaryContent">
{eval var=$entry->content}
</div>
{/if}
{if isset($entry->extra)}
<div class="NewsSummaryExtra">
{eval var=$entry->extra}
{* {cms_module module='Uploads' mode='simpleurl' upload_id=$entry->extravalue} *}
</div>
{/if}
{if isset($entry->fields)}
{foreach from=$entry->fields item='field'}
<div class="NewsSummaryField">
{if $field->type == 'file'}
<img src="{$entry->file_location}/{$field->value}"/>
{else}
{$field->name}: {eval var=$field->value}
{/if}
</div>
{/foreach}
{/if}
</div>
{/foreach}
<!-- End News Display Template -->
Code: Select all
{if $entry->formatpostdate}
<div id="NewsPostDetailDate">
{$entry->formatpostdate}
</div>
{/if}
<h3 id="NewsPostDetailTitle">{$entry->title}</h3>
<hr id="NewsPostDetailHorizRule" />
{if $entry->summary}
<div id="NewsPostDetailSummary">
<strong>
{eval var=$entry->summary}
</strong>
</div>
{/if}
{if $entry->category}
<div id="NewsPostDetailCategory">
{$category_label} {$entry->category}
</div>
{/if}
{if $entry->author}
<div id="NewsPostDetailAuthor">
{$author_label} {$entry->author}
</div>
{/if}
<div id="NewsPostDetailContent">
{eval var=$entry->content}
</div>
{if $entry->extra}
<div id="NewsPostDetailExtra">
{$extra_label} {$entry->extra}
</div>
{/if}
<div id="NewsPostDetailPrintLink">
{$entry->printlink}
</div>
{if $return_url != ""}
<div id="NewsPostDetailReturnLink">{$return_url}</div>
{/if}
{if isset($entry->fields)}
{foreach from=$entry->fields item='field'}
<div class="NewsDetailField">
{if $field->type == 'file'}
{* this template assumes that every file uploaded is an image of some sort, because News doesn't distinguish *}
<img src="{$entry->file_location}/{$field->value}"/>
{else}
{$field->name}: {eval var=$field->value}
{/if}
</div>
{/foreach}
{/if}
Re: News Module Stopped Working
You can click the link at: http://www.psychlosport.co.uk/index.php
At the bottom of the page.
Thanks
Tina
At the bottom of the page.
Thanks
Tina
Re: News Module Stopped Working
Can you post the call to the news module from your page template?
Do you have a separate page for detail news display?
Nullig
Do you have a separate page for detail news display?
Nullig
Re: News Module Stopped Working
Here is the call:
I was able to click on the link and see the detail of the newsarticle i had created. That has now gone...
Code: Select all
{* Start News *}
<div id="news">
<h2>News</h2>
{news number='3' detailpage='news'}</div>
{* End News *}
Re: News Module Stopped Working
Do you have a page called "news"?
Nullig
Nullig
Re: News Module Stopped Working
Nullig,
Not that i'm aware of, at least, i havent specifically created one myself, it just stopped working where it was working before.
Is this 'missing' page the problem?
Tina
Not that i'm aware of, at least, i havent specifically created one myself, it just stopped working where it was working before.
Is this 'missing' page the problem?
Tina
Re: News Module Stopped Working
Create a page called "News" with a page alias of "news", but uncheck the option to show it in the menu. In the content of the page just put:
{news}
Nullig
{news}
Nullig
Re: News Module Stopped Working
Looks like you got it now.
Nullig
Nullig
Re: News Module Stopped Working
Nullig,
Yes, thanks for that! I created the page and it worked fine. Am I able to credit you for answering my question?
Much appretiated!
Tina
Yes, thanks for that! I created the page and it worked fine. Am I able to credit you for answering my question?

Much appretiated!
Tina
Re: [Solved] News Module Stopped Working
No need for credit - just glad to see you got it working.
Nullig
Nullig