Page 1 of 1
News are not shown
Posted: Tue Oct 16, 2007 6:18 pm
by Erich le Ghaz
Hi,
after upgrading to 1.1.4.1 I have two problems with the news (2.3.0.2).
1. They aren't shown in the sidebar anymore. I didn't change the statement in the template
Code: Select all
{cms_module module="news" number='3' detailpage='news' category='News'}
2. The whole news-site (
http://www.easy-breeze.de/index.php?page=news) has an error: string(87) "Smarty error: unable to read resource: "module_db_tpl:News;summarycwo_news_summary.tpl""
I'm using the following statement for the page
Code: Select all
{news number='40' detailtemplate='cwo_news_details.tpl' summarytemplate='cwo_news_summary.tpl'}
Hope you can help!
Christian
Re: News are not shown
Posted: Tue Oct 16, 2007 6:21 pm
by RonnyK
Christian,
from 1.1 on News-templates are DB-driven, that means that the file-templates aren't used anymore. If you have a copy of the templates/or check the templates under News/templates, you should recreate the templates in the backend. First create the default template, then create one/save it and mark it as default. This should be done for both summary and detail.
Ronny
Re: News are not shown
Posted: Tue Oct 16, 2007 6:33 pm
by Erich le Ghaz
Hi Ronny,
thanks for your answer.
I think I got something wrong. I tried to restore my summary and detail template via admin menue under news. Is that what you meant? Iit did't work. I got message: deprecated
Christian
Re: News are not shown
Posted: Tue Oct 16, 2007 6:41 pm
by RonnyK
Christian,
I meant in the news-module, the tabs "Summary template" and "Detail template", there a template (under the textarea) must exist that is marked as default. The only "deprecating" I know in news is the use of Content-Type in adding a page, that is no longer supported.
Where do you get that message?
Ronny
Re: News are not shown
Posted: Tue Oct 16, 2007 7:14 pm
by Erich le Ghaz
Hallo Ronny,
yes, I'm going via admin menue to the news module. There I choose the tab summary template. The text area is filled with:
{foreach from=$items item=entry}
{if $entry->formatpostdate}
{$entry->formatpostdate}
{/if}
{$entry->titlelink}
{eval var=$entry->summary}
{/foreach}
Than I push the button "Restore to dafaults" and get the message "deprecated "
Christian
Re: News are not shown
Posted: Tue Oct 16, 2007 7:22 pm
by RonnyK
Christian,
what if you check below that text-area, there is the default-template, stored. Create a new one, with your coding, save it and mark it as default.
Probably not all files are overwritten, as the old template-files should be replaced with the new default files, but that should not be any problem.
Ronny
Re: News are not shown
Posted: Tue Oct 16, 2007 7:30 pm
by Erich le Ghaz
Hallo Ronny,
lol, maybe I'm a bit stupid, but what do you mean with "below". There is nothing below.
Where can I mark it as a default??
Christian
Re: News are not shown
Posted: Tue Oct 16, 2007 7:32 pm
by RonnyK
What is your News version, check under "Extensions -> Modules"?
Ronny
Re: News are not shown
Posted: Tue Oct 16, 2007 7:35 pm
by Erich le Ghaz
Hi Ronny,
I'm running 1.1.4.1 with news 2.3.0.2.
Christian
Re: News are not shown
Posted: Tue Oct 16, 2007 7:55 pm
by Dr.CSS
If you don't have any news items you care about, I would uninstall News then reinstall it, it may go to News 2.5...
Re: News are not shown
Posted: Tue Oct 16, 2007 7:59 pm
by Erich le Ghaz
And it will work with 1.1.4.1?
Re: News are not shown
Posted: Wed Oct 17, 2007 3:15 am
by Dr.CSS
Yes...