Page 1 of 2

News detail page stopped working

Posted: Wed Jul 02, 2008 3:21 am
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 -->

Re: News detail page stopped working

Posted: Wed Jul 02, 2008 3:36 am
by anthony
Also.......

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

Re: News detail page stopped working

Posted: Wed Jul 02, 2008 6:20 am
by cyberman
Please tell us something more about your install like CMSms version, version of News module ...

Re: News detail page stopped working

Posted: Wed Jul 02, 2008 2:06 pm
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.

Re: News detail page stopped working

Posted: Wed Jul 02, 2008 8:51 pm
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...

Re: News detail page stopped working

Posted: Wed Jul 02, 2008 9:36 pm
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!

Re: News detail page stopped working

Posted: Thu Jul 03, 2008 3:13 am
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?

??

Re: News detail page stopped working

Posted: Thu Jul 03, 2008 5:52 am
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).

Re: News detail page stopped working

Posted: Thu Jul 03, 2008 10:48 am
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?

Re: News detail page stopped working

Posted: Wed Jul 09, 2008 6:08 pm
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?

Re: News detail page stopped working

Posted: Fri Jul 11, 2008 4:56 am
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

Re: News detail page stopped working

Posted: Fri Jul 11, 2008 11:31 am
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 ;-).

Re: News detail page stopped working

Posted: Sat Jul 12, 2008 8:50 am
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?

Re: News detail page stopped working

Posted: Mon Jul 14, 2008 2:40 pm
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.

Re: News detail page stopped working

Posted: Mon Jul 14, 2008 7:48 pm
by Dr.CSS
@jwaldeck

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