Zum Inhalt springen

HTML-Vorlage wird nicht mehr eingefügt

Erstellt am 18. August 2004 · 6 Antworten · letzte Antwort am 18. August 2004

Tags: Frage

Schlingel ·

Hallo zusammen,

ich muss vorwegnehmen, dass ich eigentlich schon ein wenig Ahnung von T3 habe und schon einige Seiten damit gemacht hab.

Also ich hatte eine seite, die ich grafisch überarbeitet hab und die HTML vorlage angepasst habe. ich habe die alte Vorlage ersetzt und jetzt kommt das, was man im moment auf http://www.shade-music.de sieht.

Ich hab hiermit mal mein Setup und meine HTML-Quelle im Angebot. Vielleicht seh ich den Wald vor lauter Bäumen nicht mehr.

Setup:

# Default PAGE object:
page = PAGE
page.typeNum = 0
page.stylesheet  = fileadmin/template/style.css
page.bodyTag = <body bgcolor="#FFFFFF" background="fileadmin/template/img/bg.gif" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onLoad="MM_preloadImages('fileadmin/template/img/band_over.gif','fileadmin/template/img/sound_over.gif','fileadmin/template/img/news-over.gif','fileadmin/template/img/g-book_over.gif','fileadmin/template/img/contact_over.gif','fileadmin/template/img/linx_over.gif')">

page.10 {
    template = FILE
    template.file = fileadmin/template/template.html
    workonsubpart = DOKUMENT
    marks.INHALT = CONTENT
    marks.INHALT.table = tt_content
}


plugin.tt_news {

  limit = 5

  displayList {

    image.file.maxW = 100

    imageWrapIfAny (

      <table align="left" bgcolor="#D3D3D3" cellpadding="1"

             cellspacing="0" border="0" width="300">

      <tr><td>

      <table bgcolor="#EEEEEE" cellpadding="0"

             cellspacing="0" border="0">

      <tr><td> | </td></tr>

      </table>

      </td></tr>

      </table>

    )

  }

  displaySingle {

    image.file.maxW = 160

    imageWrapIfAny (

      <table align="left" bgcolor="#AAAAAA" cellpadding="1"

             cellspacing="0" border="0">

      <tr><td>

      <table bgcolor="#EEEEEE" cellpadding="0"

             cellspacing="0" border="0">

      <tr><td> | </td></tr>

      </table>

      </td></tr>

      </table>

    )

  }

}


plugin.tt_calender {
  file = typo3/ext/tt_calender/pi/calendar.inc
  templateFile = media/scripts/calendar_template.tmpl
  pid_list.field = pages
  recursive.field = recursive
  #fontFace = {$plugin.tt_calender.fontFace}
  maxAge = 5
  parseFunc < styles.content.parseFunc
}

HTML-Quelle:

###DOKUMENT###

<script language="JavaScript" type="text/JavaScript">
<!--
function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}
//-->
</script>
<script language="JavaScript" type="text/JavaScript">
<!--
function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);
//-->
</script>

<div id="LAYER" style="position:absolute; left:816px; top:308px; width:148px; height:237px; z-index:1">
  <table width="100%" height ="100%" border ="0" cellpadding="0" cellspacing="0">
<tr><td valign="top"><iframe frameborder="0" src="index.php?id=9" width="154" height="233" name="gigdates">
<p>Dein Browser kann leider keine eingebetteten Frames anzeigen:
Du kannst die Gigdates &uuml;ber den folgenden Verweis
aufrufen: <a href="index.php?id=9">Gigdates</a></p>
</iframe></td></tr></table></div>
<table id="Tabelle_01" width="1011" height="801" border="0" cellpadding="0" cellspacing="0">
	<tr>
		<td colspan="11">
			<img src="fileadmin/template/img/menu_01.gif" width="1010" height="44" alt=""></td>
		<td>
			<img src="fileadmin/template/img/Abstandhalter.gif" width="1" height="44" alt=""></td>
	</tr>
	<tr>
		<td colspan="7" rowspan="12" valign="top"><table width="779" border="0" cellspacing="0" cellpadding="0">
          <tr>
            <td width="679" valign="top"><table width="679" border="0" cellpadding="0" cellspacing="0">
              <tr valign="top">
                <td height="140"><img src="fileadmin/template/img/menu_02.gif" width="123" height="29" alt=""> <a href="index.php?id=" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('band','','fileadmin/template/img/band_over.gif',1)"><img src="fileadmin/template/img/band.gif" alt="band" name="band" width="123" height="92" border="0"></a>
                    <p></p></td>
                <td height="140"><a href="index.php?id=" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('sound','','fileadmin/template/img/sound_over.gif',1)"><img src="fileadmin/template/img/sound.gif" alt="sound" name="sound" width="120" height="95" border="0"></a></td>
                <td height="140"><a href="index.php?id=" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('news','','fileadmin/template/img/news-over.gif',1)"><img src="fileadmin/template/img/news.gif" alt="news" name="news" width="120" height="95" border="0"></a></td>
                <td height="140"><img src="fileadmin/template/img/menu_05.gif" width="148" height="22" alt=""> <a href="index.php?id=" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('g-book','','fileadmin/template/img/g-book_over.gif',1)"><img src="fileadmin/template/img/g-book.gif" alt="g-book" name="g-book" width="148" height="86" border="0"></a></td>
                <td height="140"><img src="fileadmin/template/img/menu_06.gif" width="168" height="63" alt=""> <a href="index.php?id=" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('contact','','fileadmin/template/img/contact_over.gif',1)"><img src="fileadmin/template/img/contact.gif" alt="contact" name="contact" width="168" height="77" border="0"></a>
                  <div align="right"><img src="fileadmin/template/img/line_rest.gif" width="8" height="5">
                  </div>
                <p></p></td>
              </tr>
            </table>
              <table width="679" border="0" cellspacing="0" cellpadding="5">
                <tr>
                  <td>###INHALT###</td>
                </tr>
              </table>
            <p>&nbsp;</p></td>
            <td valign="top"><table width="100" border="0" cellpadding="0" cellspacing="0">
              <tr valign="top">
                <td height="140"><img src="fileadmin/template/img/menu_07.gif" width="100" height="140" alt=""></td>
              </tr>
              <tr valign="top">
                <td rowspan="2" valign="top"><a href="index.php?id=" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('linx','','fileadmin/template/img/linx_over.gif',1)"><img src="fileadmin/template/img/linx.gif" alt="linx" name="linx" width="100" height="94" border="0" align="top"><br>
                </a>###RIGHT###</td>
              </tr>
              <tr valign="top"> </tr>
            </table></td>
          </tr>
        </table></td>
		<td colspan="4" rowspan="8" valign="top">
			<img src="fileadmin/template/img/menu_08.gif" width="231" height="169" alt=""></td>
		<td>
			<img src="fileadmin/template/img/Abstandhalter.gif" width="1" height="22" alt=""></td>
	</tr>
	<tr>
		<td>
			<img src="fileadmin/template/img/Abstandhalter.gif" width="1" height="7" alt=""></td>
	</tr>
	<tr>
		<td>
			<img src="fileadmin/template/img/Abstandhalter.gif" width="1" height="34" alt=""></td>
	</tr>
	<tr>
	  <td>
		  <img src="fileadmin/template/img/Abstandhalter.gif" width="1" height="32" alt=""></td>
	</tr>
	<tr>
	  <td>
		  <img src="fileadmin/template/img/Abstandhalter.gif" width="1" height="13" alt=""></td>
	</tr>
	<tr>
	  <td>
		  <img src="fileadmin/template/img/Abstandhalter.gif" width="1" height="13" alt=""></td>
	</tr>
	<tr>
		<td>
			<img src="fileadmin/template/img/Abstandhalter.gif" width="1" height="19" alt=""></td>
	</tr>
	<tr>
	  <td>
		  <img src="fileadmin/template/img/Abstandhalter.gif" width="1" height="29" alt=""></td>
	</tr>
	<tr>
		<td colspan="4">
			<img src="fileadmin/template/img/menu_17.gif" width="231" height="65" alt=""></td>
		<td>
			<img src="fileadmin/template/img/Abstandhalter.gif" width="1" height="65" alt=""></td>
	</tr>
	<tr>
	  <td colspan="4">
		  <img src="fileadmin/template/img/menu_19.gif" width="231" height="38" alt=""></td>
		<td>
			<img src="fileadmin/template/img/Abstandhalter.gif" width="1" height="38" alt=""></td>
	</tr>
	<tr>
		<td colspan="2">
			<img src="fileadmin/template/img/menu_20.gif" width="35" height="230" alt=""></td>
		<td>
			<img src="fileadmin/template/img/menu_21.gif" width="148" height="230" alt=""></td>
		<td>
			<img src="fileadmin/template/img/menu_22.gif" width="48" height="230" alt=""></td>
		<td>
			<img src="fileadmin/template/img/Abstandhalter.gif" width="1" height="230" alt=""></td>
	</tr>
	<tr>
		<td>
			<img src="fileadmin/template/img/menu_23.gif" width="1" height="254" alt=""></td>
		<td colspan="3" valign="top">
			<img src="fileadmin/template/img/menu_24.gif" width="230" height="254" alt=""></td>
		<td>
			<img src="fileadmin/template/img/Abstandhalter.gif" width="1" height="254" alt=""></td>
	</tr>
	<tr>
		<td>
			<img src="fileadmin/template/img/Abstandhalter.gif" width="123" height="1" alt=""></td>
		<td>
			<img src="fileadmin/template/img/Abstandhalter.gif" width="120" height="1" alt=""></td>
		<td>
			<img src="fileadmin/template/img/Abstandhalter.gif" width="120" height="1" alt=""></td>
		<td>
			<img src="fileadmin/template/img/Abstandhalter.gif" width="148" height="1" alt=""></td>
		<td>
			<img src="fileadmin/template/img/Abstandhalter.gif" width="146" height="1" alt=""></td>
		<td>
			<img src="fileadmin/template/img/Abstandhalter.gif" width="22" height="1" alt=""></td>
		<td>
			<img src="fileadmin/template/img/Abstandhalter.gif" width="100" height="1" alt=""></td>
		<td>
			<img src="fileadmin/template/img/Abstandhalter.gif" width="1" height="1" alt=""></td>
		<td>
			<img src="fileadmin/template/img/Abstandhalter.gif" width="34" height="1" alt=""></td>
		<td>
			<img src="fileadmin/template/img/Abstandhalter.gif" width="148" height="1" alt=""></td>
		<td>
			<img src="fileadmin/template/img/Abstandhalter.gif" width="48" height="1" alt=""></td>
		<td></td>
	</tr>
</table>
###DOKUMENT###
jweiland ·

Ersetze mal im Typoscript Code die Zeile

    marks.INHALT.table = tt_content

mit

    marks.INHALT.table = styles.content.get

Jochen Weiland

Schlingel ·

Nein, hilft nix, das komische is ja dass es vorher mit genau demselben setup funktioniert hat und auch andere seiten von mir damit laufen.

Ach und nur vorsichtshalber: Ja ich habe die Caches gelöscht #giggle#

jweiland ·

Oh sorry, da war natürlich auch ein Fehler in meinem Code....

es müsste heissen

marks.INHALT < styles.content.get

Dann ist mir aber noch was aufgefallen:

workonsubpart = DOKUMENT

funktioniert nicht, es müsste heissen:

workOnSubpart = DOKUMENT

Jochen Weiland
[/quote]

Schlingel ·

Hmm, das funktioniert auch nicht, das komische ist ja dass ein fast identischer Code auf einer anderen Seite einwandfrei geht.

auch das workOnSubpart hab ich auf einer anderen seite komplett klein geschrieben und es geht.

jweiland ·

Typo3 IST case-sensitiv, mit workOnSubpart beschränkt man die Arbeit von Typo3 auf einen bestimmten Bereich des Templates. Ansonsten wird das gesamte Template verarbeitet, d.h. wenn alles kleingeschrieben ist kann man die Zeile auch weglassen, da sie keinen Effekt hat.

Jochen Weiland

Schlingel ·

Ok, das ist durchaus richtig, was ich einfach nicht verstehe warum das Template nicht geladen wird, ich hab mein Setup angepasst, hier nochmal der aktuelle Auszug
Ich hatte grad mein HTML Template auf

###DOKUMENT###

###INHALT###

###DOKUMENT###

geändert, aber geholfen hat das auch nix.

# Default PAGE object:
page = PAGE
page.typeNum = 0
page.stylesheet  = fileadmin/template/style.css
page.bodyTag = <body bgcolor="#FFFFFF" background="fileadmin/template/img/bg.gif" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0"  onLoad="MM_preloadImages('fileadmin/template/img/band_over.gif','fileadmin/template/img/sound_over.gif','fileadmin/template/img/news-over.gif','fileadmin/template/img/g-book_over.gif','fileadmin/template/img/contact_over.gif','fileadmin/template/img/linx_over.gif')">

page.10 {
    template = FILE
    template.file = fileadmin/template/template.html
    workOnSubpart = DOKUMENT 
    marks.INHALT = CONTENT
    marks.INHALT < styles.content.get 
}


plugin.tt_news {

  limit = 5

  displayList {

    image.file.maxW = 100

    imageWrapIfAny (

      <table align="left" bgcolor="#D3D3D3" cellpadding="1"

             cellspacing="0" border="0" width="300">

      <tr><td>

      <table bgcolor="#EEEEEE" cellpadding="0"

             cellspacing="0" border="0">

      <tr><td> | </td></tr>

      </table>

      </td></tr>

      </table>

    )

  }

  displaySingle {

    image.file.maxW = 160

    imageWrapIfAny (

      <table align="left" bgcolor="#AAAAAA" cellpadding="1"

             cellspacing="0" border="0">

      <tr><td>

      <table bgcolor="#EEEEEE" cellpadding="0"

             cellspacing="0" border="0">

      <tr><td> | </td></tr>

      </table>

      </td></tr>

      </table>

    )

  }

}


plugin.tt_calender {
  file = typo3/ext/tt_calender/pi/calendar.inc
  templateFile = media/scripts/calendar_template.tmpl
  pid_list.field = pages
  recursive.field = recursive
  #fontFace = {$plugin.tt_calender.fontFace}
  maxAge = 5
  parseFunc < styles.content.parseFunc
}