Fehler in Dateiliste

Hier bekommst Du deutschsprachigen Support. Keine Fehlermeldungen oder Erweiterungswünsche bitte!
Post Reply
simply
Posts: 1
Joined: Tue 9. Mar 2010, 15:03

Fehler in Dateiliste

Post by simply »

Wenn ich Dateien per "Dateiliste" einzeige, wird bei mir Folgendes ausgegeben:

Code: Select all

Dateiname.pdf

pdf, 192,3K, 10/10/08, 30 downloads
[FILE_IMAGE_WIDTH]

width: {FILE_IMAGE_WIDTH}px, height: {FILE_IMAGE_HEIGHT}px
mode: {FILE_IMAGE_CHANNEL}, MIME type: {FILE_IMAGE_MIME}
format: [FILE_IMAGE_LANDSCAPE]landscape[/FILE_IMAGE_LANDSCAPE][FILE_IMAGE_PORTRAIT]portrait[/FILE_IMAGE_PORTRAIT]
[/FILE_IMAGE_WIDTH] 
Unter folgender Adresse kann das Problem live beobachtet werden: http://www.crystaldesign.ch/index.php?A ... ion-Center

Mache ich etwas falsch oder ist das ein Bug?
User avatar
juergen
Moderator
Posts: 4556
Joined: Mon 10. Jan 2005, 18:10
Location: Weinheim
Contact:

Re: Fehler in Dateiliste

Post by juergen »

Was willst du genau anzeigen bei den PDF Dateien ?
User avatar
flip-flop
Moderator
Posts: 8178
Joined: Sat 21. May 2005, 21:25
Location: HAMM (Germany)
Contact:

Re: Fehler in Dateiliste

Post by flip-flop »

Hallo,

ich könnte mir vorstellen dass dein Template nicht ganz i.o. ist.

Ist wohl ein Fehler in der neuen Version (ganz sicher bin ich mir allerdings nicht):
Schnelle Abhilfe: Lösche aus deinem Template diesen Bereich (wenn du keine Bilder darstellen möchtest):

Code: Select all

		[FILE_IMAGE_WIDTH]
		<p>
		width: {FILE_IMAGE_WIDTH}px, height: {FILE_IMAGE_HEIGHT}px<br />
		mode: {FILE_IMAGE_CHANNEL}, MIME type: {FILE_IMAGE_MIME}<br />
		format: [FILE_IMAGE_LANDSCAPE]landscape[/FILE_IMAGE_LANDSCAPE][FILE_IMAGE_PORTRAIT]portrait[/FILE_IMAGE_PORTRAIT]
		</p>
		[/FILE_IMAGE_WIDTH]
Knut
>> HowTo | DOCU | FAQ | TEMPLATES/DOCS << ( SITE )
User avatar
Oliver Georgi
Site Admin
Posts: 9892
Joined: Fri 3. Oct 2003, 22:22
Contact:

Re: Fehler in Dateiliste

Post by Oliver Georgi »

Sieht danach aus, dass das Template aktualisiert wurde aber nicht der dazugehörige Content Part - also eher unvollständiges Update.
Oliver Georgi | phpwcms Developer | GitHub | LinkedIn | Систрон
User avatar
flip-flop
Moderator
Posts: 8178
Joined: Sat 21. May 2005, 21:25
Location: HAMM (Germany)
Contact:

Re: Fehler in Dateiliste

Post by flip-flop »

Darüberhinaus scheint der Mischbetrieb mit Dokumenten und Bilddateien nicht richtig zu funktionieren.
Stehten Bilder gebündelt am Anfang der Liste ist alle i.o.
- Bild
- Bild
- Doc
- Doc
----------------- OK

Steht ein Doc am Anfang der Liste tritt der oben beschriebene Fehler auf.
- Doc
- Bild (Fehler)
- Bild (Felher)
- Doc (Fehler)

Knut
>> HowTo | DOCU | FAQ | TEMPLATES/DOCS << ( SITE )
User avatar
flip-flop
Moderator
Posts: 8178
Joined: Sat 21. May 2005, 21:25
Location: HAMM (Germany)
Contact:

Re: Fehler in Dateiliste

Post by flip-flop »

Mit ein wenig Nachdenken kommt man dann zu dieser funktionierenden Lösung z.B.:

Code: Select all

		[FILE_IMAGE]
		[FILE_IMAGE_WIDTH]
		Format: [FILE_IMAGE_LANDSCAPE]quer[/FILE_IMAGE_LANDSCAPE][FILE_IMAGE_PORTRAIT]hoch[/FILE_IMAGE_PORTRAIT]
		&nbsp; - B x H: {FILE_IMAGE_WIDTH} x {FILE_IMAGE_HEIGHT}px<br />
		Modus: {FILE_IMAGE_CHANNEL} &nbsp;&nbsp; - MIME type: {FILE_IMAGE_MIME}<br />
		[/FILE_IMAGE_WIDTH]
		[/FILE_IMAGE]
		{FILE_DOWNLOADS} Downloads
Wichtig:

Code: Select all

		[FILE_IMAGE]
		[FILE_IMAGE_WIDTH]
		 ........
		[/FILE_IMAGE_WIDTH]
		[/FILE_IMAGE]
@Oliver: Bitte in der /template/inc_default/filelist.html oder im Core ändern.

Knut
>> HowTo | DOCU | FAQ | TEMPLATES/DOCS << ( SITE )
Skipy
Posts: 87
Joined: Mon 26. Dec 2005, 22:10
Location: Germany
Contact:

Re: Fehler in Dateiliste

Post by Skipy »

Hi ich kann den Fehler bestätigen.

Die Lösung von Flip-Flop löst das Problem auch fast. Ich habe aber noch eine Dateikonstellation gefunden, bei der der Fehler immer noch auftritt:
Ich habe folgende Dateitypen eingehängt in die Dateiliste:

- pdf
- pdf
- pdf
- pdf
- pdf
- pdf
- doc
- pdf
- pdf
- jpg (FEHLER)

Zu sehen zum Beispiel hier: http://www.schwann-evangelisch.de/index ... 02,0,0,1,0

Viele Grüße,
Skipy
User avatar
Oliver Georgi
Site Admin
Posts: 9892
Joined: Fri 3. Oct 2003, 22:22
Contact:

Re: Fehler in Dateiliste

Post by Oliver Georgi »

Mal versuchen in include/inc_front/content/cnt7.article.inc.php ziemlich am Ende der Datei wie folgt zu ergänzen und Bescheid geben, ob es hilft.

Code: Select all

		$crow["acontent_template"] = replace_tmpl_section('FILE_ENTRY', $crow["acontent_template"], implode(LF, $_files_entries));
		$crow["acontent_template"] = render_cnt_template($crow["acontent_template"], 'TITLE', html_specialchars($crow['file_cp_title']));
		$crow["acontent_template"] = render_cnt_template($crow["acontent_template"], 'SUBTITLE', html_specialchars($crow['file_cp_subtitle']));
		$crow["acontent_template"] = render_cnt_template($crow["acontent_template"], 'TEXT', $crow["acontent_html"]);
		
// ------- cleanup left over FILE_IMAGE sections --
		$crow["acontent_template"] = replace_cnt_template($crow["acontent_template"], 'FILE_IMAGE', '');
// ------- cleanup left over FILE_IMAGE sections --

		// return result
		if( empty($IS_NEWS_CP) ) {
			$CNT_TMP .= LF.trim($crow["acontent_template"]).LF;
		} else {
			$news['files_result'] = trim($crow["acontent_template"]);
		}
Oliver Georgi | phpwcms Developer | GitHub | LinkedIn | Систрон
Skipy
Posts: 87
Joined: Mon 26. Dec 2005, 22:10
Location: Germany
Contact:

Re: Fehler in Dateiliste - noch keine Lösung

Post by Skipy »

Habe den Code wie angegeben ergänzt. Die letzten Zeilen der Datei sehen dann so aus:

Code: Select all

		$crow["acontent_template"] = replace_tmpl_section('FILE_ENTRY', $crow["acontent_template"], implode(LF, $_files_entries));
		$crow["acontent_template"] = render_cnt_template($crow["acontent_template"], 'TITLE', html_specialchars($crow['file_cp_title']));
		$crow["acontent_template"] = render_cnt_template($crow["acontent_template"], 'SUBTITLE', html_specialchars($crow['file_cp_subtitle']));
		$crow["acontent_template"] = render_cnt_template($crow["acontent_template"], 'TEXT', $crow["acontent_html"]);

		// ------- cleanup left over FILE_IMAGE sections --
		$crow["acontent_template"] = replace_cnt_template($crow["acontent_template"], 'FILE_IMAGE', '');
		// ------- cleanup left over FILE_IMAGE sections --

		// return result
		if( empty($IS_NEWS_CP) ) {
			$CNT_TMP .= LF.trim($crow["acontent_template"]).LF;
		} else {
			$news['files_result'] = trim($crow["acontent_template"]);
		}
		
		// reset locale settings
		if(!empty($_files_old_locale)) {
			setlocale(LC_ALL, $_files_old_locale);
		}
		
		unset($_files_count, $_files_entries, $_files_old_locale);

	}
}		
Es hat aber leider keine sichtbaren Auswirkungen gehabt :-)

Das Ergebnis ist noch immer ein Fehler im letzten Eintrag:
http://www.schwann-evangelisch.de/index ... nfirmanden
User avatar
Oliver Georgi
Site Admin
Posts: 9892
Joined: Fri 3. Oct 2003, 22:22
Contact:

Re: Fehler in Dateiliste

Post by Oliver Georgi »

Dann halt noch mehr rausparsen.

Code: Select all

// ------- cleanup left over FILE_IMAGE sections --
$crow["acontent_template"] = replace_cnt_template($crow["acontent_template"], 'FILE_IMAGE', '');
$crow["acontent_template"] = replace_cnt_template($crow["acontent_template"], 'FILE_IMAGE_WIDTH', '');
// ------- cleanup left over FILE_IMAGE sections --
Oliver Georgi | phpwcms Developer | GitHub | LinkedIn | Систрон
Skipy
Posts: 87
Joined: Mon 26. Dec 2005, 22:10
Location: Germany
Contact:

[solved] Fehler in Dateiliste

Post by Skipy »

Hi Oli,

ja - hattest recht ;-) Jetzt sieht alles wieder aus wie es soll ...

Danke Dir,
Gruß,
Skipy
Post Reply