News detail page stopped working

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.
anthony
Forum Members
Forum Members
Posts: 37
Joined: Thu Jun 22, 2006 12:50 am

News detail page stopped working

Post by anthony »

I'm not sure what exactly I did but my news detail page stopped working.  I thought it was something with the detail page that I was targeting so I change my call to {news moretext='Read More.' detailtemplate='test'} but when the page reloads I see the same thing as the summary template.  When I click on my news links it now will display the same exact looking page as the summary instead of the details of the article the visitor clicked.

Any help as to where I should be looking to troubleshoot would be greatly appreciated.  I'm pulling out my hair ATM.

Here are the contents of my test detail template:

Code: Select all

<h2 class="newstitle">{$entry->title}</h2>
<p class="date">{if $entry->formatpostdate}{$entry->formatpostdate}{/if}</p>
<p>{eval var=$entry->content}</p>
And here are the contents of my summary template:

Code: Select all

<!-- Start News Display Template -->
<p align="right"><a href="/News/rss/{$entry->category}" title="Subscribe to feed">Subscribe to feed <img border="0" src="uploads/images/feed-icon-14x14.png" alt="Subscribe to feed" /></a></p>

{foreach from=$items item=entry}
<div class="newsitem">
{if $entry->titlelink}
	<h3>{$entry->titlelink}</h3>
{/if}

{if $entry->summary}
	<p>{eval var=$entry->summary} {$entry->morelink}</p>
{/if}
</div>
{/foreach}
<p align="right"><a href="/News/rss/{$entry->category}" title="Subscribe to feed">Subscribe to feed <img border="0" src="uploads/images/feed-icon-14x14.png" alt="Subscribe to feed" /></a></p>

<!-- End News Display Template -->
anthony
Forum Members
Forum Members
Posts: 37
Joined: Thu Jun 22, 2006 12:50 am

Re: News detail page stopped working

Post by anthony »

Also.......

I tried redirecting to another page and it does redirect but the content does not display on the page.
cyberman

Re: News detail page stopped working

Post by cyberman »

Please tell us something more about your install like CMSms version, version of News module ...
anthony
Forum Members
Forum Members
Posts: 37
Joined: Thu Jun 22, 2006 12:50 am

Re: News detail page stopped working

Post by anthony »

I'm running CMSMS 1.3 and news 2.8.

If somebody can direct me on how I could totally restore the News module with its own templates that would work as well.  Right now it is working as normal on my live site but of course quite a bit of dev has been done on the dev site so I can't lose any changes (other than news there).

At the moment, I don't see where News' templates are stored in the DB, so I'm not sure if trying to restore from live will work.

Any help would be greatly appreciated.
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am
Location: Arizona

Re: News detail page stopped working

Post by Dr.CSS »

You should be able to copy the default template from the tab Default Templates, if you messed with these you can hit the Restore to Factory Defaults button...
anthony
Forum Members
Forum Members
Posts: 37
Joined: Thu Jun 22, 2006 12:50 am

Re: News detail page stopped working

Post by anthony »

I tried that with no luck.  That's why I was hoping to just restore the tables from the DB on the live site to my test and having it work.

What I don't see is where the DB form templates are stored in the database.....and I'm still stuck with only a couple weeks to figure out how I can make the dev site the live site without undoing all the work done on the dev site.

Helllllllp!
anthony
Forum Members
Forum Members
Posts: 37
Joined: Thu Jun 22, 2006 12:50 am

Re: News detail page stopped working

Post by anthony »

Hmm I don't see anything in the templates folder that resembles the naming conventions that I'm using.  I had thought all the templates were stored in the DB now, are they actually creating new files in this folder when you create new summary/detail templates?

??
cyberman

Re: News detail page stopped working

Post by cyberman »

Think you are missunderstood something.

The default module templates are stored in templates folder. They are imported on install. After that template is stored in database (table cms_module_templates).
anthony
Forum Members
Forum Members
Posts: 37
Joined: Thu Jun 22, 2006 12:50 am

Re: News detail page stopped working

Post by anthony »

Ah, OK.  So if I backup any page templates I have since created and restore the news module table and that site templates table I should be back to normal?
anthony
Forum Members
Forum Members
Posts: 37
Joined: Thu Jun 22, 2006 12:50 am

Re: News detail page stopped working

Post by anthony »

I still am having issues with getting the news section to work.  Any time a link is clicked it is just reloading the same page and only displaying the detail page (though the URL is being updated depending on the news item clicked).

Thoughts?
jwaldeck

Re: News detail page stopped working

Post by jwaldeck »

Hello Guys!

I'm experiencing the same problem here: http://www.angaasset.com.br/br/asset-management.html

If you click on the "Highlights" on the left, it goes to the news page but if you click "read more" nothing happens. The same page just gets loaded again.

Using CMS 1.2.3 with MLE.
Code in template: {news number="2" category="News-$lang" lang="$lang" detailpage="highlights" }
News with two categories: News-pt_BR and News-en_US

Had this working perfectly on a website without MLE (languages module by Alby). Don't have a clue what could be happening! :(

Thanks in advance!
jw
anthony
Forum Members
Forum Members
Posts: 37
Joined: Thu Jun 22, 2006 12:50 am

Re: News detail page stopped working

Post by anthony »

I was completely stumped by this and ended up duplicating my dev site so I would have all the pages that I created, reinstalling 1.3.1 and then slowly rebuilding the site.  Took about a night but couldn't really find any other option that worked.  I'm under some tight deadlines ;-).
cyberman

Re: News detail page stopped working

Post by cyberman »

How do you have called the News module?
Have you tried to work without Pretty urls?
Have you tried to work with default News template?
anthony
Forum Members
Forum Members
Posts: 37
Joined: Thu Jun 22, 2006 12:50 am

Re: News detail page stopped working

Post by anthony »

I did a full reinstall and the issue went away (not really the best solution but time is limited).

I won't mark this as solved since somebody else seems to still be having the issue.
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am
Location: Arizona

Re: News detail page stopped working

Post by Dr.CSS »

@jwaldeck

You may want to upgrade your ver. of MLE, it mat help...
Post Reply

Return to “CMSMS Core”