Page 1 of 1

News-Modul - Fehler bei Summary-Template

Posted: Sat Nov 03, 2007 4:05 pm
by turnbeutel85
vielen Dank. Guter Tipp, so hab ich es jetzt gemacht.

Ich frag jetzt noch mal schnell was anderes, wo ich gerade ein Problem habe:

Ich möchte ein neues Summarytemplate benutzen, hab den Code in eine Textdatei kopiert und als veranstaltungen.tpl gespeichert und in den Ordner "modules/News/templates" hochgeladen. Folgende Codezeile hab ich dann eingebaut "{news number='3' category='Veranstaltungen | Vereinsmeisterschaften' summarytemplate="veranstaltungen.tpl"}"

Auf der Seite erscheint jetzt immer folgender Fehler:
string(86) "Smarty error: unable to read resource: "module_db_tpl:News;summaryveranstaltungen.tpl""

Muss beim Hochladen etwas beachten?

Re: Re: Section Header nicht als Link dargestellt

Posted: Mon Nov 05, 2007 7:23 am
by cyberman
Welche Version des News-Moduls verwendest du? Seit kurzem werden dateibasierte Templates NICHT mehr unterstützt.

Evtl. hilft auch das

{news number='3' category='Veranstaltungen | Vereinsmeisterschaften' summarytemplate='veranstaltungen.tpl'}

Re: News-Modul - Fehler bei Summary-Template

Posted: Sun Dec 09, 2007 12:26 am
by calguy1000
again, I'm being brave and trying to understand the text that I got from google translations.

Since you've not mentioned any versions of CMS or any modules I can only hope your running a recent (1.1.x or greater ) version of CMS made simple when you read my reply.

New versions of the news module store all summary templates and detail templates in the database... they will not read .tpl files from the templates directory.  There is a gui interface for this, go to the 'summary templates' (I think) tab of the news module, click 'new template'... add the template code, and name it:  veranstaltungen.tpl,  Then remove non required whitespace from your news tag (particularly anything between quotes).

that hopefully will do the trick for you.