Zum Inhalt springen

Template zeigt den Inhalt nicht an

Erstellt am 6. Januar 2004 · 12 Antworten · letzte Antwort am 6. Januar 2004

Tags: Templates & Layouts, Frage

Rebecca ·

Hallo,

ich habe ein kleines Problem:

Ich habe ein Template erstellt, nur leider zeigt es den Inhalt nicht an.

Hat jmd vielleicht eine Idee, woran das liegen könnte?

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<head>
<title>KUPER Kunststofftechnik - Kunststoff-Bearbeitung</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css">
h1        { color:#DEA902; font-weight:bold; font-size:22px; }
h2        { color:#DEA902; font-weight:bold; font-size:18px;}
h3        { color:#DEA902; font-weight:bold; font-size:14px; }
h4        { color:#DEA902; font-weight:bold; font-size:12px; }

a:link      { text-decoration:underline; color:#993333; }
a:visited     { text-decoration:underline; color:#993333; }
a:hover      { text-decoration:underline; color:#993333; }
a:active     { text-decoration:underline; color:#993333; }

a.linkadresse:link    { text-decoration:none; color:#DEA902; font-size:9px; line-height:9px; }
a.linkadresse:visited  { text-decoration:none; color:#DEA902; font-size:9px; line-height:9px; }
a.linkadresse:hover   { text-decoration:none; color:#DEA902; font-size:9px; line-height:9px; }
a.linkadresse:active   { text-decoration:none; color:#DEA902; font-size:9px; line-height:9px; }

a.linkrot:link    { text-decoration:none; color:#AB233D; font-weight:bold; font-size:14px; }
a.linkrot:visited  { text-decoration:none; color:#AB233D; font-weight:bold; font-size:14px; }
a.linkrot:hover   { text-decoration:none; color:#AB233D; font-weight:bold; font-size:14px; }
a.linkrot:active   { text-decoration:none; color:#AB233D; font-weight:bold; font-size:14px; }

a.linkgelb:link                { text-decoration:none; color:#DEA902; font-weight:bold; font-size:14px; }
a.linkgelb:visited        { text-decoration:none; color:#DEA902; font-weight:bold; font-size:14px; }
a.linkgelb:hover        { text-decoration:none; color:#AB233D; font-weight:bold; font-size:14px; }
a.linkgelb:active        { text-decoration:none; color:#AB233D; font-weight:bold; font-size:14px; }

a.linkpic:link                { text-decoration:none; color:#DEA902; font-size:12px; font-weight:bold; }
a.linkpic:visited        { text-decoration:none; color:#DEA902; font-size:12px; font-weight:bold; }
a.linkpic:hover                { text-decoration:none; color:#FFFFFF; font-size:12px; font-weight:bold; }
a.linkpic:active        { text-decoration:none; color:#FFFFFF; font-size:12px; font-weight:bold; }

.picbeschriftung        { font-family: Arial, Helvetica, sans-serif;color:#FFFFFF; font-size:12px; font-weight:bold; }

.fettgelb                         { font-family: Arial, Helvetica, sans-serif; color:#DEA902; font-weight:bold; font-size:14px; line-height:21px; }
.fettrot                         { font-family: Arial, Helvetica, sans-serif; color:#AB233D; font-weight:bold; font-size:14px; line-height:21px; }
.grossgelb                        { font-family: Arial, Helvetica, sans-serif; color:#DEA902; font-weight:bold; font-size:22px; line-height:21px; }
.adresse                        { font-family: Arial, Helvetica, sans-serif; color:#DEA902; font-size:9px; line-height:11px;}
.schwarz                         { font-family: Arial, Helvetica, sans-serif; color:#000000; font-size:12px; line-height:21px; }
.weiss						{ font-family: Arial, Helvetica, sans-serif; color:#ffffff; font-weight:bold; font-size:14px; line-height:21px; }

.bgoben                        { background-color:#AB233D; background-image:url(kunststoff/nav/hg_oben.gif); background-repeat:repeat-x;}

.bg90                         { background-color:#B4404A; background-image:url(kunststoff/nav/90_innen.gif); background-repeat:repeat-x;}
.bg90bearb                { background-color:#B4404A; background-image: url(kunststoff/nav/90_innenbearb.jpg); background-repeat:repeat-x;}
.bg90ohne                { background-color:#B4404A; background-image:url(kunststoff/nav/90_innenohne.gif); background-repeat:repeat-x;}

.bg80                        { background-color:#B74850; background-image:url(kunststoff/nav/80_innen.gif); background-repeat:repeat-x;}
.bg80bearb                { background-color:#B74850; background-image: url(kunststoff/nav/80_innenbearb.jpg);background-repeat:repeat-x; }
.bg80ohne                { background-color:#B74850; background-image:url(kunststoff/nav/80_innenohne.gif); background-repeat:repeat-x;}

.bg70                        { background-color:#BD565A; background-image:url(kunststoff/nav/70_innen.gif); background-repeat:repeat-x;}
.bg70bearb                { background-color:#BD565A; background-image: url(kunststoff/nav/70_innenbearb.jpg); background-repeat:repeat-x;}
.bg70ohne                { background-color:#BD565A; background-image:url(kunststoff/nav/70_innenohne.gif); background-repeat:repeat-x;}

.bg60                        { background-color:#C26262; background-image:url(kunststoff/nav/60_innen.gif); background-repeat:repeat-x;}
.bg60bearb                { background-color:#C26262; background-image: url(kunststoff/nav/60_innenbearb.jpg); background-repeat:repeat-x;}
.bg60ohne                { background-color:#C26262; background-image:url(kunststoff/nav/60_innenohne.gif); background-repeat:repeat-x;}

.bg50                        { background-color:#C86F6C; background-image:url(kunststoff/nav/50_innen.gif); background-repeat:repeat-x;}
.bg50bearb                { background-color:#C86F6C; background-image: url(kunststoff/nav/50_innenbearb.jpg); background-repeat:repeat-x;}
.bg50ohne                { background-color:#C86F6C; background-image:url(kunststoff/nav/50_innenohne.gif); background-repeat:repeat-x;}

.bg40                        { background-color:#CC7972; background-image:url(kunststoff/nav/40_innen.gif); background-repeat:repeat-x;}
.bg40bearb                { background-color:#CC7972; background-image: url(kunststoff/nav/40_innenbearb.jpg); background-repeat:repeat-x;}
.bg40ohne                { background-color:#CC7972; background-image:url(kunststoff/nav/40_innenohne.gif); background-repeat:repeat-x;}

.bgfarbe100         { background-color:#AB233D; }
.bgfarbe90                 { background-color:#B4404A; }
.bgfarbe80                { background-color:#B74850; }
.bgfarbe70                { background-color:#BD565A; }
.bgfarbe60                { background-color:#C26262; }
.bgfarbe50                { background-color:#C86F6C; }
.bgfarbe40                { background-color:#CC7972; }
.bgfarbe0                { background-color:#FFFFFF; }

body       { font-family: Arial, Helvetica, sans-serif; color:#000000; font-size:12px; margin: 0cm 0cm 0cm 0cm; line-height:21px;}
br        { font-family: Arial, Helvetica, sans-serif; color:#000000; font-size:12px; line-height:21px; }
div        { font-family: Arial, Helvetica, sans-serif; color:#000000; font-size:12px; line-height:21px; }
em        { font-family: Arial, Helvetica, sans-serif; color:#000000; font-size:12px; line-height:21px; }
hr        { font-family: Arial, Helvetica, sans-serif; color:#000000; font-size:12px; line-height:21px; }
p         { font-family: Arial, Helvetica, sans-serif; color:#000000; font-size:12px; line-height:21px; }
form       { font-family: Arial, Helvetica, sans-serif; color:#000000; font-size:12px; line-height:21px; }
ul        { font-family: Arial, Helvetica, sans-serif; color:#000000; font-size:12px; line-height:21px; list-style-image: url(kunststoff/nav/list_image.gif); }
ol        { font-family: Arial, Helvetica, sans-serif; color:#000000; font-size:12px; line-height:21px; }
th        { font-family: Arial, Helvetica, sans-serif; color:#000000; font-size:12px; }
img        { font-family: Arial, Helvetica, sans-serif; color:#000000; font-size:12px; }
table       { font-family: Arial, Helvetica, sans-serif; color:#000000; font-size:12px; }
tr        { font-family: Arial, Helvetica, sans-serif; color:#000000; font-size:12px; }
td        { font-family: Arial, Helvetica, sans-serif; color:#000000; font-size:12px; }
</style>

</head>
<body>
<!-- ###DOKUMENT### begin -->
<table width="100%"  height="100%" border="0" cellpadding="0" cellspacing="0" class="bgfarbe100">
  <tr>
    <td align="center" valign="top">
<table width="100%"  border="0" cellpadding="0" cellspacing="0" class="bgfarbe0">
	<tr align="left" valign="bottom">
    	<td height="72" rowspan="2"><a href="http://demo.nid.de/quickstart/index.php?id=75"><img src="fileadmin/Image_Archive/logo_kunststoff_innen.gif" alt="Logo KUPER Kunststofftechnik" width="240" height="72"></a></td>
		  <td height="71" align="center" valign="bottom" nowrap="nowrap">###MENU_OBEN###</td>
	</tr>
	<tr align="left" valign="bottom">
		<td height="1" align="center" valign="bottom"><img src="fileadmin/Image_Archive/10x10.gif" alt="platzhalter" width="50" height="1"></td>
	</tr>
  	    <tr align="right" valign="bottom" class="bgoben">
		  <td height="85" colspan="2"><table width="95%"  border="0" cellspacing="0" cellpadding="0">
			  <tr>
				<td align="left" valign="middle" class="weiss">Alles f&uuml;r die Kunststoff-Bearbeitung aus einer Hand!<br>
				  Mit KUPER keine Kunst.<br></td>
				<td align="right" valign="bottom"><img src="fileadmin/Image_Archive/oben_bearbeitung.jpg" alt="Kunststoff-Bearbeitung" width="478" height="85"></td>
			  </tr>
			</table>
			
		  </td>
	</tr>
</table>	  
	  <table width="100%"  border="0" cellpadding="0" cellspacing="0" class="bgfarbe0">
	    <tr>
    	  <td width="17%" height="65" align="center" valign="top">
			<table width="100%"  border="0" cellpadding="0" cellspacing="0" class="bg90">
			  <tr align="center" valign="top">
				<td height="65" rowspan="2" align="right"><img src="fileadmin/Image_Archive/90.gif" alt="Sägen" width="70" height="41" align="middle"></td>
				<td height="24" align="left" valign="middle"><a href="bearbeitung_saegen.php" class="linkpic">S&auml;gen</a></td>
			  </tr>
			  <tr>
				<td height="41">&nbsp;</td>
			  </tr>
			</table></td>
		  <td width="17%" height="65" align="center" valign="top">
			<table width="100%"  border="0" cellpadding="0" cellspacing="0" class="bg80">
			  <tr align="center" valign="top">
				<td height="65" rowspan="2" align="right"><img src="fileadmin/Image_Archive/70.gif" alt="Fräsen/Lasern" width="58" height="41" align="middle"></td>
				<td height="24" align="left" valign="middle"><a href="bearbeitung_fraesen.php" class="linkpic">Fr&auml;sen/Lasern</a></td>
			  </tr>
			  <tr>
				<td height="41">&nbsp;</td>
			  </tr>
			</table></td>
		  <td width="17%" height="65" align="center" valign="top">
			<table width="100%"  border="0" cellpadding="0" cellspacing="0" class="bg70">
			  <tr align="center" valign="top">
				<td height="65" rowspan="2" align="right"><img src="fileadmin/Image_Archive/80.gif" alt="Bohren" width="47" height="41" align="middle"></td>
				<td height="24" align="left" valign="middle"><a href="bearbeitung_bohren.php" class="linkpic">Bohren</a></td>
			  </tr>
			  <tr>
				<td height="41">&nbsp;</td>
			  </tr>
			</table></td>
		  <td width="17%" height="65" align="center" valign="top">
			<table width="100%"  border="0" cellpadding="0" cellspacing="0" class="bg60">
			  <tr align="center" valign="top">
				<td height="65" rowspan="2" align="right"><img src="fileadmin/Image_Archive/60.gif" alt="Drehen" width="59" height="41" align="middle"></td>
				<td height="24" align="left" valign="middle"><a href="bearbeitung_drehen.php" class="linkpic">Drehen</a></td>
			  </tr>
			  <tr>
				<td height="41">&nbsp;</td>
			  </tr>
			</table></td>
		  <td width="16%" height="65" align="center" valign="top">
			<table width="100%"  border="0" cellpadding="0" cellspacing="0" class="bg50">
			  <tr align="center" valign="top">
				<td height="65" rowspan="2" align="right"><img src="fileadmin/Image_Archive/50.gif" alt="Werkzeuge" width="55" height="41" align="middle"></td>
				<td height="24" align="left" valign="middle"><a href="bearbeitung_werkzeuge.php" class="linkpic">Werkzeuge</a></td>
			  </tr>
			  <tr>
				<td height="41">&nbsp;</td>
			  </tr>
			</table></td>
		  <td width="16%" height="65" align="center" valign="top">
			<table width="100%"  border="0" cellpadding="0" cellspacing="0" class="bg40">
			  <tr align="center" valign="top">
				<td height="65" rowspan="2" align="right"><img src="fileadmin/Image_Archive/40.gif" alt="Sonstige" width="66" height="41" align="middle"></td>
				<td height="24" align="left" valign="middle"><a href="bearbeitung_sonstige.php" class="linkpic">Sonstige</a></td>
			  </tr>
			  <tr>
				<td height="41">&nbsp;</td>
			  </tr>
			</table>
###INHALT###
			</td>
		</tr>
  		<tr>
    	<td height="340" colspan="6" align="center" valign="top">
    	  
    	  </td>
		</tr>						  
	  </table>
<p>	  <span class="grossgelb">Kunststoff-Bearbeitung</span><br>
	  <br>
	  <span class="adresse">&copy; Heinrich KUPER GmbH &amp; Co. KG | Bruchstra&szlig;e 13 - 19 | 33397 Rietberg | Germany | Phone +49 (0) 52 44/9 84 - 0 | Fax +49 (0) 52 44/9 84 - 2 01 | <a href="http://www.kuper.de" class="linkadresse">www.KUPER.de</a></span></p>	  </td>
  </tr>
</table>
<!-- ###DOKUMENT### end --> 
</body>
</html>

Hier noch der Link zu der Seite:

http://demo.nid.de/quickstart/

Ich bin für jede Hilfe dankbar.

MfG
Rebecca

Stoneage ·

Bitte Spam uns nicht zu, es ist nicht nötig den gesamten Quelltext der Seite zu posten. Interessant sind ja eigentlich nur die Marker und das Typoscript. Die Marker sehen korrekt aus. Über das TS kann ich keine Aussage machen, weil hast du nicht gepostet.

Grüße,

C.

Rebecca ·

Danke für die schnelle Antwort.
Sorry, wollte euch nicht ärgern.

Hier noch mein TS:

config.admPanel=1
page.stylesheet = fileadmin/css/style.css
seite = PAGE 
seite.typeNum = 0 
# Template initialisieren 
seite.10=TEMPLATE 
seite.10{ 
  template = FILE 
  template.file = fileadmin/kuper.tmpl 
  ####################################################################
  # den Marker mit einem Menü ersetzen (oben)
  marks.MENU_OBEN=HMENU
  marks.MENU_OBEN.entryLevel=0
  marks.MENU_OBEN.1=TMENU
  marks.MENU_OBEN.1.NO{
   linkWrap = <font size="2" face="Arial, Verdana, sans-serif">||&nbsp;I&nbsp;|</font>
  }
  ####################################################################
  #Menü IMPRESSUM 
  marks.IMPRESSUM=HMENU 
  #marks.IMPRESSUM.1=TMENU 
  1.special=directory 
  1.special.value=52 
  1.entryLevel=1
  ####################################################################
  #Inhalt einfügen
  marks.INHALT= CONTENT
  marks.INHALT.table= tt_content
}

MfG
Rebecca

Unbekannter Benutzer ·

Hi Rebecca

Check doch nochmal die Platzierung deines Markers
###INHALT###

Scheint mir als wäre der in der Navi-Tabelle anstatt im
eigentlichen Inhalts Teil platziert.

peay

Rebecca ·

Danke für die schnelle Antwort.
Nee, leider nicht. Habe das jetzt aktualiesiert. (Habe neben dem Marker "Test" hingeschrieben). Die Platzierung passt.

Hast du vielleicht noch eine Idee?

MfG
Rebecca

stevenx ·

Versuchs mal hiermit:

#Inhalt einfügen 
  seite.20.marks.INHALT= CONTENT 
  seite.20.marks.INHALT.table= tt_content

Grüße

Steven

Rebecca ·

Hat leider nicht geklappt.
Jetzt steht über all, wo ich ###INHALT### eingesetzt habe (zu Testzwecken) ###INHALT###.

Hast du vielleicht noch eine Idee?

MfG
Rebecca

Rebecca ·

Was ist das "Include Static " oder wo finde ich das?

Ich habe das via Dokumentation programmiert. (Habe heute erst damit angefangen).

Stoneage ·

So geht das nicht. Du must ihm doch erst sagen wo er arbeiten soll. workondokument = dokument oder so.

c.

Unbekannter Benutzer ·

Hallo

Falls du nach Doku gearbeitet hast wirst du vermutlich
was übersehen haben...

Schätze Tetramatrix meint was in diese Richtung...

Vorher....:

Rebecca schrieb

Danke für die schnelle Antwort.
Sorry, wollte euch nicht ärgern.

Hier noch mein TS:

config.admPanel=1
page.stylesheet = fileadmin/css/style.css
seite = PAGE 
seite.typeNum = 0 
# Template initialisieren 
seite.10=TEMPLATE 
seite.10{ 
  template = FILE 
  template.file = fileadmin/kuper.tmpl 
  ####################################################################
  # den Marker mit einem Menü ersetzen (oben)
  marks.MENU_OBEN=HMENU
  marks.MENU_OBEN.entryLevel=0
  marks.MENU_OBEN.1=TMENU
  marks.MENU_OBEN.1.NO{
   linkWrap = <font size="2" face="Arial, Verdana, sans-serif">||&nbsp;I&nbsp;|</font>
  }
  ####################################################################
  #Menü IMPRESSUM 
  marks.IMPRESSUM=HMENU 
  #marks.IMPRESSUM.1=TMENU 
  1.special=directory 
  1.special.value=52 
  1.entryLevel=1
  ####################################################################
  #Inhalt einfügen
  marks.INHALT= CONTENT
  marks.INHALT.table= tt_content
}

MfG
Rebecca

und nachher...:

config.admPanel=1
page.stylesheet = fileadmin/css/style.css
seite = PAGE
seite.typeNum = 0
# Template initialisieren
seite.10=TEMPLATE
seite.10{
template = FILE
template.file = fileadmin/kuper.tmpl

#Definiert Inhalt für Body Tag
worksOnSubpart = DOKUMENT
//oder wie auch immer du den Subpart benammst hast

####################################################################
# den Marker mit einem Menü ersetzen (oben)
marks.MENU_OBEN=HMENU
marks.MENU_OBEN.entryLevel=0
marks.MENU_OBEN.1=TMENU
marks.MENU_OBEN.1.NO{
linkWrap = <font size="2" face="Arial, Verdana, sans-serif">||&nbsp;I&nbsp;|</font>
}
####################################################################
#Menü IMPRESSUM
marks.IMPRESSUM=HMENU
#marks.IMPRESSUM.1=TMENU
1.special=directory
1.special.value=52
1.entryLevel=1
####################################################################
#Inhalt einfügen
marks.INHALT= CONTENT
marks.INHALT.table= tt_content
}

Was eigentlich so funktionieren sollte...

@Tetramatrix....Stimmt habe ich übersehen. 😉

Gruss peay

Rebecca ·

Habe es jetzt eingefügt, aber leider klappt es immer noch nicht (bin auch noch mal die Syntax meines Templates durchgeganen).

seite.10{ 
  template = FILE 
  template.file = fileadmin/kuper.tmpl 
  workondokument = DOKUMENT
####################################################################
  # den Marker mit einem Menü ersetzen (oben)
  marks.MENU_OBEN=HMENU
  marks.MENU_OBEN.entryLevel=0
  marks.MENU_OBEN.1=TMENU
  marks.MENU_OBEN.1.NO{
   linkWrap = <font size="2" face="Arial, Verdana, sans-serif">||&nbsp;I&nbsp;|</font>
  }
.
.
.

Hast du vielleicht noch eine Idee?

LG
Rebecca

Unbekannter Benutzer ·

Hi Rebecca

versuchs nochmal so...

---schnipp---
template = FILE
template.file = fileadmin/kuper.tmpl

#Definiert Inhalt für Body Tag
worksOnSubpart = DOKUMENT //oder wie auch immer du den Subpart benammst hast

####################################################################
# den Marker mit einem Menü ersetzen (oben)
marks.MENU_OBEN=HMENU
marks.MENU_OBEN.entryLevel=0
---schnapp---

Beachte worksOnSubpart anstatt workondokument

Gruss peay