News are not shown

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.
Post Reply
User avatar
Erich le Ghaz
Forum Members
Forum Members
Posts: 32
Joined: Wed Feb 07, 2007 2:55 pm

News are not shown

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

Re: News are not shown

Post 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
User avatar
Erich le Ghaz
Forum Members
Forum Members
Posts: 32
Joined: Wed Feb 07, 2007 2:55 pm

Re: News are not shown

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

Re: News are not shown

Post 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
User avatar
Erich le Ghaz
Forum Members
Forum Members
Posts: 32
Joined: Wed Feb 07, 2007 2:55 pm

Re: News are not shown

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

Re: News are not shown

Post 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
User avatar
Erich le Ghaz
Forum Members
Forum Members
Posts: 32
Joined: Wed Feb 07, 2007 2:55 pm

Re: News are not shown

Post by Erich le Ghaz »

Hallo Ronny,

lol, maybe I'm a bit stupid, but what do you mean with "below". There is nothing below.

Image

Where can I mark it as a default??

Christian
RonnyK
Support Guru
Support Guru
Posts: 4962
Joined: Wed Oct 25, 2006 8:29 pm

Re: News are not shown

Post by RonnyK »

What is your News version, check under "Extensions -> Modules"?

Ronny
User avatar
Erich le Ghaz
Forum Members
Forum Members
Posts: 32
Joined: Wed Feb 07, 2007 2:55 pm

Re: News are not shown

Post by Erich le Ghaz »

Hi Ronny,

I'm running 1.1.4.1 with news 2.3.0.2.

Christian
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am

Re: News are not shown

Post 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...
User avatar
Erich le Ghaz
Forum Members
Forum Members
Posts: 32
Joined: Wed Feb 07, 2007 2:55 pm

Re: News are not shown

Post by Erich le Ghaz »

And it will work with 1.1.4.1?
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am

Re: News are not shown

Post by Dr.CSS »

Yes...
Post Reply

Return to “CMSMS Core”