Hallo Gemeinde
Seit einiger Zeit beschäftigt mich ein Problem mit dem
Stylesheet einbinden.
Ich habe da ein absolut simples setup gemacht:
#default page object
page = PAGE
page.typeNum = 0
page.config.diableAllHeaderCode = 1
page.config.language = de#get stylesheet
page.stylesheet = fileadmin/temp-peay/stylesheet.css#main temp cObject for body
temp.mainTemplate = TEMPLATE
temp.mainTemplate {#define template file
template = FILE
template.file = fileadmin/temp-peay/template.html#select only content for body tag
workOnSubpart = DOKUMENT#define the content subpart
subparts.INHALT = CONTENT
subparts.INHALT.table = tt_content
}page.10 < temp.mainTemplate
Mein HTML template....:
<html>
<head>
<title>peaych</title>
</head>
<body>
<!-- ###DOKUMENT### start -->
<table width="750" border="0" cellspacing="0" cellpadding="0" align="center">
<colgroup>
<col width="200">
<col>
<tr>
<td colspan="2">
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td><img src="fileadmin/temp-peay/pics/top.gif" alt="" height="30" width="30"></td>
</tr>
</table>
</td>
</tr>
<tr>
<td colspan="2">
<table border="0" cellspacing="0" cellpadding="0" width="100%">
<tr>
<td align="right">
<!-- ###MENU_OBEN### start -->
menu oben
<!-- ###MENU_OBEN### ende -->
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td valign="top" width="200">
<table width="200" border="0" cellspacing="0" cellpadding="0">
<tr>
<td>
<!-- ###MENU_LINKS### start -->
menu links
<!-- ###MENU_LINKS### ende -->
</td>
</tr>
</table>
</td>
<td valign="top" width="550">
<table width="550" border="0" cellspacing="0" cellpadding="0">
<tr>
<td>
<!-- ###INHALT### start -->
erster text
<!-- ###INHALT### ende-->
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td valign="top" width="200">
</td>
<td valign="top" width="550">
</td>
</tr>
</col>
</col>
</table>
<!-- ###DOKUMENT### ende -->
</body>
</html>
Im output wird das File auch mitangezeigt...
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<!--
This website is brought to you by Typo3 - get.content.right
Typo3 is a free open source Content Management Framework
created by Kasper Skaarhoej and licensed under GNU/GPL.
Information and contribution at http://www.typo3.com
--><link rel="stylesheet" href="fileadmin/temp-peay/stylesheet.css">
<title>Home</title>
Der Pfad stimmt (habe die erfahrung gemacht das wenn der
Pfad falsch definiert ist, dieser nicht im output erscheint)
und trotzdem wird das Stylesheet nicht umgesetzt.
Auszug aus dem Stylesheet gefällig...?
/* TD */
td {
color: black;
font-size: 10px;
font-family: Verdana;
}/* inhalt */
#inhalt {
padding-top: 10px;
color: black;
font-size: 20px;
font-family: Verdana;
}
Müsste doch eigentlich korrekt sein, oder?
Weiss wirklich nicht mehr weiter..... 😢
Vielleicht kann mir hier jemand helfen....
Übrigens: wer knallt mir eigentlich diesen Teil rein?
<P style="margin:0 0 0 0;">
Danke Peter