Hier bekommst Du deutschsprachigen Support. Keine Fehlermeldungen oder Erweiterungswünsche bitte!
simply
Posts: 1 Joined: Tue 9. Mar 2010, 15:03
Post
by simply » Tue 9. Mar 2010, 15:07
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?
juergen
Moderator
Posts: 4556 Joined: Mon 10. Jan 2005, 18:10
Location: Weinheim
Contact:
Post
by juergen » Wed 10. Mar 2010, 07:36
Was willst du genau anzeigen bei den PDF Dateien ?
flip-flop
Moderator
Posts: 8178 Joined: Sat 21. May 2005, 21:25
Location: HAMM (Germany)
Contact:
Post
by flip-flop » Wed 10. Mar 2010, 10:02
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
Oliver Georgi
Site Admin
Posts: 9892 Joined: Fri 3. Oct 2003, 22:22
Contact:
Post
by Oliver Georgi » Wed 10. Mar 2010, 11:55
Sieht danach aus, dass das Template aktualisiert wurde aber nicht der dazugehörige Content Part - also eher unvollständiges Update.
flip-flop
Moderator
Posts: 8178 Joined: Sat 21. May 2005, 21:25
Location: HAMM (Germany)
Contact:
Post
by flip-flop » Wed 10. Mar 2010, 12:19
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
flip-flop
Moderator
Posts: 8178 Joined: Sat 21. May 2005, 21:25
Location: HAMM (Germany)
Contact:
Post
by flip-flop » Thu 11. Mar 2010, 13:16
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]
- B x H: {FILE_IMAGE_WIDTH} x {FILE_IMAGE_HEIGHT}px<br />
Modus: {FILE_IMAGE_CHANNEL} - 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
Skipy
Posts: 87 Joined: Mon 26. Dec 2005, 22:10
Location: Germany
Contact:
Post
by Skipy » Fri 24. Sep 2010, 23:26
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
Oliver Georgi
Site Admin
Posts: 9892 Joined: Fri 3. Oct 2003, 22:22
Contact:
Post
by Oliver Georgi » Sat 25. Sep 2010, 08:04
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"]);
}
Skipy
Posts: 87 Joined: Mon 26. Dec 2005, 22:10
Location: Germany
Contact:
Post
by Skipy » Sat 25. Sep 2010, 13:05
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
Oliver Georgi
Site Admin
Posts: 9892 Joined: Fri 3. Oct 2003, 22:22
Contact:
Post
by Oliver Georgi » Sat 25. Sep 2010, 20:04
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 --
Skipy
Posts: 87 Joined: Mon 26. Dec 2005, 22:10
Location: Germany
Contact:
Post
by Skipy » Sun 26. Sep 2010, 11:37
Hi Oli,
ja - hattest recht
Jetzt sieht alles wieder aus wie es soll ...
Danke Dir,
Gruß,
Skipy