Problem mit Editor/ Vorschau, nur bei best. Templates

Gesperrt
it-nachtigal
Beiträge: 3
Registriert: Do 17. Apr 2008, 10:56
Wohnort: Windeby
Kontaktdaten:

Problem mit Editor/ Vorschau, nur bei best. Templates

Beitrag von it-nachtigal »

Hallo Miteinander,

ich habe das Problem, dass ich den Editor und die Vorschau von Artikeln nicht benutzen kann, wenn ich bestimmte Templates für die Artikel(bzw Seiten) wähle.
Der Unterschied zwischen den funktionierenden und nicht funktionierenden Templates ist das Zusammenfassen einiger Container mit hilfe von Tabellen, und dem Einfügen von Bildern mittels <img src= ... .
Im Frontend wird alles vernünftig angezeigt, jedoch muss ich jedesmal, wenn ich einen Artikel ändern möchte, das template auf "Standard" stellen, dann ändern, und dann wieder auf das richtige template stellen, damit alles wieder hübsch ist. Kennt jemand das Problem, bzw gibt es eine Lösung dafür ?

Vielen Dank für die Hilfe

A. Nachtigal
emergence
Beiträge: 10653
Registriert: Mo 28. Jul 2003, 12:49
Wohnort: Austria
Kontaktdaten:

Beitrag von emergence »

was ist denn bitte genau ein nicht funktionierendes template ?

d.h du musst das genauer beschreiben, sonst wird dir keiner helfen können...

welche contenido version ?
gibts fehlermeldungen ?
screenshots können auch hilfreich sein...
code des layouts ? im vergleich zum anderen ?
html validator mal probiert ? vielleicht sind nicht alle tags korrekt geschlossen...
usw...
*** make your own tools (wishlist :: thx)
it-nachtigal
Beiträge: 3
Registriert: Do 17. Apr 2008, 10:56
Wohnort: Windeby
Kontaktdaten:

Beitrag von it-nachtigal »

Ich habe mich wohl unglücklich ausgedrückt. Bitte entschuldige.
Ein funktionierendes Template ist jenes, mit dem ich den Editor und die Vorschau verwenden kann, ohne dass irgendwelche Fehler auftreten.

Ein nicht funktionierendes Template zeichnet sich dadurch aus, dass der Editor nicht funktioniert (es kommen jede Menge php-Fehler), und die Vorschau wird auch nicht richtig angezeigt.

Das lustige dabei ist, dass das "nicht funktionierende Template" einwandfrei läuft, wenn ich die Website selbst aufrufe. Es funktioniert also nur innerhalb des Backends nicht richtig. Die Tags sind alle geschlossen, soweit ich gesehen habe.

Ich poste mal ein "funktionierendes Template" :


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 4.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="de">
<head>

<!--
This website is brought to you by WISLI World Internet Service Ltd.
CONTENIDO is a free open source Content Management Framework created by four for business AG and licensed under GNU/GPL.
CONTENIDO is copyright 2001-2006 of four for business AG. Modules are copyright of their respective owners.
Information and contribution at http://www.contenido.org
-->

<title>Musikseminar Hamburg MenschMusik e.V.</title>
<meta http-equiv="Content-Language" content="de"/>
<meta http-equiv="ImageToolbar" content="no"/>
<link rel="stylesheet" type="text/css" href="css/style.css"/>
<script language="javascript" type="text/javascript" src="js/jsApi.js"></script>
</head>
<body>
<style type="text/css">
table { border-spacing:0px; border-collapse:collapse;}
td { vertical-align:top; height:100%; empty-cells:show;}
</style>
<div id="wrap">
<container id="50" name="Hilfsnavigation" types="Navigation" mode="fixed" default="Hilfsnavigation">Hilfsnavigation</container>
<container id="80" name="Illustration" types="Content" default=""></container>
<table bgcolor=white height=100%><tr><td height=100%>
<div id="col-left">
<container id="40" name="Hauptnavigation" types="Navigation" mode="fixed" default="Hauptnavigation">Hauptnavigation</container>
</div></td>
<td>
<div id="col-body">
<container id="60" name="Navigationspfad" types="Navigation" mode="fixed" default="Navigationspfad">Navigationspfad</container>
<container id="10" name="Headline" types="Content" default="Headline (HTML)">Headline (HTML)</container>
<container id="12" name="Text" types="Content" default="">Content 1</container>
<container id="15" name="Text" types="Content" default="">Content 2</container>
<container id="22" name="Text" types="Content" default="">Content 3</container>
<container id="24" name="Text" types="Content" default="">Content 4</container>
<container id="26" name="Text" types="Content" default="">Content 5</container>
<container id="28" name="Text" types="Content" default="">Content 6</container>
<container id="30" name="BottomNavigation" types="Navigation" mode="fixed" default="BottomNavigation">BottomNavigation</container>
</div>
</td><td>
<div id="col-right" style="height:100%;">
<container id="70" name="Teaser_Rechts" types="Content" mode="optional">Teaser (Rechts)</container>
<container id="72" name="Teaser_Rechts" types="Content" mode="optional">Teaser (Rechts)</container>
<container id="74" name="Teaser_Rechts" types="Content" mode="optional">Teaser (Rechts)</container>
</div>
<br class="y"/>
</div></div>
</td></tr></table>
</body>
</html>




... und ein nicht funktionierendes :




<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 4.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="de">


<!--
This website is brought to you by WISLI World Internet Service Ltd.
CONTENIDO is a free open source Content Management Framework created by four for business AG and licensed under GNU/GPL.
CONTENIDO is copyright 2001-2006 of four for business AG. Modules are copyright of their respective owners.
Information and contribution at http://www.contenido.org
-->

<title>Musikseminar Hamburg MenschMusik e.V.</title>
<meta http-equiv="Content-Language" content="de"/>
<meta http-equiv="ImageToolbar" content="no"/>
<link rel="stylesheet" type="text/css" href="css/style.css"/>
<script language="javascript" type="text/javascript" src="js/jsApi.js"></script>
</head>
<body>
<style type="text/css">
table { border-spacing:0px; border-collapse:collapse;}
td { vertical-align:top; height:100%; empty-cells:show;}
</style>
<div id="wrap"><table bgcolor=white height=300px><tr><td>
<container id="50" name="Hilfsnavigation" types="Navigation" mode="fixed" default="Hilfsnavigation">Hilfsnavigation</container>
<div id="header"><img src="stylepics/logo_verm.gif" align=right width=438px><br style="clear:both;">
<img src="stylepics/header_verm.gif" width="800px"></div></tr></td></table>
<container id="80" name="Illustration" types="Content" default=""></container>
<table bgcolor=white height=100%><tr><td height=100%>
<div id="col-left" style="top:500px;">
<container id="40" name="Hauptnavigation" types="Navigation" mode="fixed" default="Hauptnavigation">Hauptnavigation</container>
</div></td>
<td>
<div id="col-body">
<container id="60" name="Navigationspfad" types="Navigation" mode="fixed" default="Navigationspfad">Navigationspfad</container>
<container id="10" name="Headline" types="Content" default="Headline (HTML)">Headline (HTML)</container>
<container id="12" name="Text" types="Content" default="">Content 1</container>
<container id="15" name="Text" types="Content" default="">Content 2</container>
<container id="22" name="Text" types="Content" default="">Content 3</container>
<container id="24" name="Text" types="Content" default="">Content 4</container>
<container id="26" name="Text" types="Content" default="">Content 5</container>
<container id="28" name="Text" types="Content" default="">Content 6</container>
<container id="30" name="BottomNavigation" types="Navigation" mode="fixed" default="BottomNavigation">BottomNavigation</container>
</div>
</td><td>
<div id="col-right" style="height:100%; ">
<img src="stylepics/news_bg_verm.gif" margin-top:-10px margin-left:-10px >
<container id="70" name="Teaser_Rechts" types="Content" mode="optional">Teaser (Rechts)</container>
<container id="72" name="Teaser_Rechts" types="Content" mode="optional">Teaser (Rechts)</container>
<container id="74" name="Teaser_Rechts" types="Content" mode="optional">Teaser (Rechts)</container>
</div>
<br class="y"/>
</div></div>
</td></tr></table>
</body>
</html>


Vielen Dank im Voraus für Deine/Eure Hilfe !
wosch

Beitrag von wosch »

Zuerst einmal, das sind keine Templates sondern Layouts.
Templates werden es mal wenn du sie aus dem Layout generierst und mit Modulen befüllt hast.

Dann sind in beiden Layouts jede Menge Syntax-Fehler.
Mal ein Beispiel:

Code: Alles auswählen

<body> 
<style type="text/css"> 
table { border-spacing:0px; border-collapse:collapse;} 
td { vertical-align:top; height:100%; empty-cells:show;} 
</style> 
gehört nicht in den Body sondern in den Header.

Dann stimmt in beiden die
a) Tabellenstruktur nicht
b) teilweise ist die Auszeichnungssynax falsch
und
c) im unteren Layout sieht das hier sehr seltsam aus (ohne zu wissen wie die Angaben in der CSS sind):

Code: Alles auswählen

...</table> 
<container id="80" name="Illustration" types="Content" default=""></container> 
<table bgcolor=white height=100%><tr><td height=100%> 
<div id="col-left" style="top:500px;"> 
Wenn man Probleme hat ein Layout mit CSS zu gestalten und dann auf Tabellenlayout umschaltet sollte man aber die Grundlagen von HTML kennen ...

EDIT:
das hier:

Code: Alles auswählen

<script language="javascript" type="text/javascript" src="js/jsApi.js">
gehört rausgeworfen, diesen Fehler schleppen die Entwickler von Beginn der 4.6 mit. Die Datei gibt es nicht.
it-nachtigal
Beiträge: 3
Registriert: Do 17. Apr 2008, 10:56
Wohnort: Windeby
Kontaktdaten:

Beitrag von it-nachtigal »

hallo wosch.

Vielen Dank für Deine Antwort. Das mit den Layouts ist richtig. Ich meinte Layouts.

Das das untere Layout teilw. etwas komisch aussieht liegt daran, dass Internet-Explorer, Firefox, Konqueror, etc. das gleiche anzeigen sollten.
Die (teilw doppelten) Befehle haben nur so richtig funktioniert.

Ich habe den <style> --- </style>. Bereich mal in den Header verschoben, leider jedoch ohne Erfolg.

Die Seite wird im Frontend ja auch super angezeigt. Nur das Backend bekommt den Kram nicht gebacken.

Wenn ich einen Artikel auf das obere Layout einstelle, kann ich den wunderbar editieren, bei dem unteren Layout kommen folgende Fehlermeldungen :

Warning: main(config.php) [function.main]: failed to open stream: No such file or directory in /srv/www/vhosts/.../httpdocs/MenschMusik/contenido/external/backendedit/front_content.php on line 62

Warning: main() [function.include]: Failed opening 'config.php' for inclusion (include_path='.:.:') in /srv/www/vhosts/.../httpdocs/MenschMusik/contenido/external/backendedit/front_content.php on line 62

Warning: chdir() [function.chdir]: No such file or directory (errno 2) in /srv/www/vhosts/.../httpdocs/MenschMusik/contenido/external/backendedit/front_content.php on line 63

Warning: Cannot modify header information - headers already sent by (output started at /srv/www/vhosts/.../httpdocs/MenschMusik/contenido/external/backendedit/front_content.php:62) in /srv/www/vhosts/.../httpdocs/MenschMusik/conlib/session.inc on line 481

Warning: Cannot modify header information - headers already sent by (output started at /srv/www/vhosts/.../httpdocs/MenschMusik/contenido/external/backendedit/front_content.php:62) in /srv/www/vhosts/.../httpdocs/MenschMusik/conlib/session.inc on line 484

Warning: Cannot modify header information - headers already sent by (output started at /srv/www/vhosts/.../httpdocs/MenschMusik/contenido/external/backendedit/front_content.php:62) in /srv/www/vhosts/.../httpdocs/MenschMusik/conlib/session.inc on line 485

Warning: Cannot modify header information - headers already sent by (output started at /srv/www/vhosts/.../httpdocs/MenschMusik/contenido/external/backendedit/front_content.php:62) in /srv/www/vhosts/.../httpdocs/MenschMusik/conlib/session.inc on line 486

Warning: Cannot modify header information - headers already sent by (output started at /srv/www/vhosts/.../httpdocs/MenschMusik/contenido/external/backendedit/front_content.php:62) in /srv/www/vhosts/.../httpdocs/MenschMusik/conlib/session.inc on line 487

Warning: Cannot modify header information - headers already sent by (output started at /srv/www/vhosts/.../httpdocs/MenschMusik/contenido/external/backendedit/front_content.php:62) in /srv/www/vhosts/.../httpdocs/MenschMusik/conlib/session.inc on line 488

Warning: Cannot modify header information - headers already sent by (output started at /srv/www/vhosts/.../httpdocs/MenschMusik/contenido/external/backendedit/front_content.php:62) in /srv/www/vhosts/.../httpdocs/MenschMusik/conlib/session.inc on line 489

Warning: Cannot modify header information - headers already sent by (output started at /srv/www/vhosts/.../httpdocs/MenschMusik/contenido/external/backendedit/front_content.php:62) in /srv/www/vhosts/.../httpdocs/MenschMusik/contenido/external/backendedit/front_content.php on line 193

Warning: Cannot modify header information - headers already sent by (output started at /srv/www/vhosts/.../httpdocs/MenschMusik/contenido/external/backendedit/front_content.php:62) in /srv/www/vhosts/.../httpdocs/MenschMusik/contenido/includes/include.con_editcontent.php on line 56



...

" Wenn man Probleme hat ein Layout mit CSS zu gestalten und dann auf Tabellenlayout umschaltet sollte man aber die Grundlagen von HTML kennen ... " - siehe Anzeigeprobleme verschiedener Browser. Ich wußte mir anders nicht zu helfen. Trotzdem Danke :oops:
wosch

Beitrag von wosch »

Hm, ...

http://forum.contenido.org/viewtopic.php?t=16260

http://forum.contenido.org/viewtopic.php?t=17194
Dazu würde auch die Fehlermeldung passen:

Code: Alles auswählen

Warning: Cannot modify header information - headers already sent by...
Gesperrt