Zum Inhalt springen

Nur weiße Seite

Erstellt am 29. September 2006 · 5 Antworten · letzte Antwort am 30. September 2006

Tags: Templates & Layouts, Frage

StephanT ·

Hallo,
bei mir ist neuerdings nur nch eien weiße Seite ohne Inhalt zu sehen, obwohl ich bewusst nicts verändert habe. Könnt ihr mir weiterhelfen, woran das liegt?
Wenn ihr euch selber überzeugen wollt: http://testweb05.de.hostingschmie.de/
Das ist das Setup Feld beim Template:

page.config.doctype = xhtml_trans
config.admPanel = 1

    # Read the template file:
  content = FILE
  content.file = fileadmin/template/main/template_1.html
    # Here we define which elements in the HTML that 
    # should be wrapped in subpart-comments:
  elements {
    BODY.all = 1
    BODY.all.subpartMarker = DOCUMENT_BODY
    HEAD.all = 1
    HEAD.all.subpartMarker = DOCUMENT_HEADER
    HEAD.rmTagSections = title
    TD.all = 1
  }
    # Prefix all relative paths with this value:
  relPathPrefix = fileadmin/template/main/
}
# Menu 1 cObject
temp.menu_1 = HMENU
  # First level menu-object, textual
temp.menu_1.1 = TMENU
temp.menu_1.1 {
    # Normal state properties
  NO.allWrap = <div class="menu1-level1-no"> | </div>
  NO.stdWrap.htmlSpecialChars = 1    
# Enable active state and set properties:
  ACT = 1
 ACT.stdWrap.htmlSpecialChars = 1
  ACT.allWrap = <div class="menu1-level1-act"> | </div>
}
  # Second level menu-object, textual
temp.menu_1.2 = TMENU
temp.menu_1.2 {
    # Normal state properties
  NO.allWrap = <div class="menu1-level2-no"> | </div>
NO.stdWrap.htmlSpecialChars = 1
    # Enable active state and set properties:
  ACT = 1
 ACT.stdWrap.htmlSpecialChars = 1
  ACT.allWrap = <div class="menu1-level2-act"> | </div>
}
  # third level menu-object, textual
temp.menu_1.3 = TMENU
temp.menu_1.3 {
    # Normal state properties
  NO.allWrap = <div class="menu1-level3-no"> | </div>
NO.stdWrap.htmlSpecialChars = 1
    # Enable active state and set properties:
  ACT = 1
 ACT.stdWrap.htmlSpecialChars = 1
  ACT.allWrap = <div class="menu1-level3-act"> | </div>
}
  # 4 level menu-object, textual
temp.menu_1.4 = TMENU
temp.menu_1.4 {
    # Normal state properties
  NO.allWrap = <div class="menu1-level4-no"> | </div>
NO.stdWrap.htmlSpecialChars = 1
    # Enable active state and set properties:
  ACT = 1
 ACT.stdWrap.htmlSpecialChars = 1
  ACT.allWrap = <div class="menu1-level4-act"> | </div>
}
# Main TEMPLATE cObject for the BODY
temp.mainTemplate = TEMPLATE
temp.mainTemplate {
    # Feeding the content from the Auto-parser to the TEMPLATE cObject:
  template =< plugin.tx_automaketemplate_pi1
    # Select only the content between the <body>-tags
  workOnSubpart = DOCUMENT_BODY
    # Substitute the ###menu_1### subpart with some example content:
  subparts.menu_1 < temp.menu_1

    # Substitute the ###content### subpart with some example content:
  subparts.content < styles.content.get
  
}
# Main TEMPLATE cObject for the HEAD
temp.headTemplate = TEMPLATE
temp.headTemplate {
    # Feeding the content from the Auto-parser to the TEMPLATE cObject:
  template =< plugin.tx_automaketemplate_pi1
    # Select only the content between the <head>-tags
  workOnSubpart = DOCUMENT_HEADER
}

# Default PAGE object:
page = PAGE
page.typeNum = 0
# Copying the content from TEMPLATE for <body>-section:
page.10 < temp.mainTemplate
# Copying the content from TEMPLATE for <head>-section:
page.headerData.10  < temp.headTemplate

und dies meine Templatedatei:

<?xml version="1.0" encoding="iso-8859-1"?>
<?xml-stylesheet href="#internalStyle" type="text/css"?>
<!DOCTYPE html 
     PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
     "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
	<title>Gymnasium Fridericanum Schwerin</title>
	<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
	<style type="text/css" id="internalStyle">
		/*<![CDATA[*/
		BODY {
	margin: 0 0 0 0;
	background-image: url();
}
		/*]]>*/
	</style>
	<link href="res/stylesheet.css" rel="stylesheet" type="text/css" />
</head>
<body>
	<table width="694" border="0" cellpadding="0" cellspacing="0">

		<!-- Header image row: -->
	<tr>
		<td colspan="2" id="header_1"><div align="left"><img src="images/fridericianumbanner.jpg" width="693" height="78" alt="" border="0" /></div></td>
	</tr>
	<tr>

		<!-- Menu table cell: -->
		<td width="200" id="menu_1">
			<div class="menu1-level1-no"><a href="#">Menu item 1</a></div>
			<div class="menu1-level1-no"><a href="#">Menu item 2</a></div>
			<div class="menu1-level1-act"><a href="#">Menu item 3 (act)</a></div>
			<div class="menu1-level2-no"><a href="#">Level 2 item</a></div>
			<div class="menu1-level2-no"><a href="#">Level 2 item</a></div>
			<div class="menu1-level2-act"><a href="#">Level 2 item (act)</a></div>
			<div class="menu1-level3-no"><a href="#">Level 3 item</a></div>
			<div class="menu1-level3-no"><a href="#">Level 3 item</a></div>
			<div class="menu1-level3-act"><a href="#">Level 3 item (act)</a></div>
			<div class="menu1-level4-no"><a href="#">Level 4 item</a></div>
			<div class="menu1-level4-no"><a href="#">Level 4 item</a></div>
			<div class="menu1-level4-act"><a href="#">Level 4 item (act)</a></div>
			<div class="menu1-level1-no"><a href="#">Menu item 2</a></div>
	  </td>

		<!-- Page Content Area table cell: -->
		<td width="494" id="content">
			<h1>Buy PaperShredder(tm) Gizmo with 30-days money-back guarantee!</h1>
			<img src="images/paperwork.jpg" width="192" height="156" border="0" alt="" align="right" />
			<p class="bodytext">Adam Seth Enos Cainan Malelehel Iared Enoch Matusale Lamech Noe Sem Ham et Iafeth filii Iafeth Gomer Magog Madai et Iavan Thubal Mosoch Thirasporro filii Gomer Aschenez et Rifath et Thogorma filii autem Iavan Elisa et Tharsis Cetthim et Dodanim.</p>
			<p class="bodytext">Filii Ham Chus et Mesraim Phut et Chanaan filii autem Chus Saba et Evila Sabatha et Rechma et Sabathaca porro filii Rechma Saba et Dadan Chus autem genuit Nemrod iste coepit esse potens in terra Mesraim vero genuit Ludim et Anamim et Laabim et Nepthuim Phethrosim quoque et Chasluim de quibus egressi sunt Philisthim et Capthurim Chanaan vero genuit Sidonem primogenitum et Heth Iebuseum quoque et Amorreum et Gergeseum Evheumque et Aruceum et Asineum Aradium quoque et Samareum et Ematheum filii Sem Aelam et Assur et Arfaxad et Lud et Aram et Us et Hul et Gothor et Mosoch Arfaxad autem genuit Sala qui et ipse genuit Heber porro Heber nati sunt duo filii nomen uni Phaleg quia in diebus eius divisa est terra et nomen fratris eius Iectan Iectan autem genuit Helmodad et Saleph et Asermoth et Iare Aduram quoque et Uzal et Decla Ebal etiam et Abimahel et Saba necnon et Ophir et Evila et Iobab omnes isti filii Iectan Sem Arfaxad Sale Heber Phaleg Raau Serug Nahor Thare Abram iste est Abraham filii autem Abraham Isaac et Ismahel et hae generationes eorum primogenitus Ismahelis Nabaioth et Cedar et Adbeel et Mabsam </p>
			
			<br />
	  </td>
	</tr>

		<!-- Footer row: -->
	<tr>
		<td colspan="2" id="footer">
			<p>Gymnasium Fridericianum Schwerin - Goethestraße 74 - 19053 Schwerin </p>
		</td>
	</tr>
</table>
</body>
</html>
woida ·

Wenn ich mir dein TS so anschauen, dann zähle ich in Zeile 19 zwei schließende Klammern aber nur eine öffnende.
Es schaut so aus, als ob in Zeile 3 was gelöscht wurde, da das allein stehende "content = FILE" auch keinen Sinn macht.
Wenn du in Typo3 im linken Frame "Info" auswählst, kannst du dann im rechten Frame in der Dropdown-Box "Log" wählen, dann siehst du die Änderungen am Template, die du gemacht hast.

StephanT ·

So, ich habe aus versehen den Teil

plugin.tx_automaketemplate_pi1 {

gelöscht. Jetzt habe ich aber das nächste Problem. Nun wird angezeigt:

content.file = fileadmin/template/main/template_1.html

Woran leigt das?
Noch ein Hinweis: der Teil: content = FILE habe ich aus dem Tutorial von Typo3.org

StephanT ·

Sorry, habe mich verschrieben. Da kommt The page is not configured! [type= 0][]

Habe mal gegoogled und gefunden das man die Häckchen bei constants, setup und rootlevel wegmachen muss. dann kommt aber No template found, obwohl ich das template hochgeladen habe.

woida ·

Nur weil du ein Template hochlädst, weiß T3 doch nicht automatisch, welche Datei es verwenden soll.

Der Fehler tritt auf, da du dein TS-Tempalte nicht korrekt konfiguriert hast. Dazu gibts es gute Einsteige-Doku (hier im Forum, bzw. unter http://typo3.org, die du zu beginn unbedingt lesen solltest.