Zum Inhalt springen

Content Problem

Erstellt am 16. Februar 2006 · 10 Antworten · letzte Antwort am 16. Februar 2006

Tags: Frage

g-style ·

Ich habe genau genommen 2 Problemchen o.O
Das erste ist das ich eine HTML Vorlage habe und diese soweit funktioniert und richtig ist. Lade ich sie hoch und lasse sie von typo3 anzeigen hört der HTML Quelltext kurz vor Ende auf was zu einem recht hässlichen Balken unten auf der Seite führt - kurz gesagt man hat den Eindruck als würde die Vorlage nicht richtig geladen. http://www.gft-typo3.de

So und das zweite und viel größere ist das ich keine Inhalte auf meine Seiten angezeigt bekomme obwohl ich sie angelegt habe in typo3. Und dabei hatte ich mich schon so gefreut als ich meine Menüs hinbekam 😉 tja aber dann endete das Erfolgserlebnis leider recht schnell. Wenn ihr die obere Seite anguckt sollte eigentlich auf der Impressumsseite schon was stehn.... .

Hoffe mir kann jemand helfen! Vielen Dank im Vorraus!

Achja hier noch mein komplettes Template (ist im Prinzip aus dieser einen deutschen Dokumentation nachgebaut da ich gerade erst mit typo3 angefangen habe):
seite = PAGE
seite {
typeNum = 0
bodyTag = <body bgColor = "#FFFFFF">
meta.AUTHOR = GFT
meta.DESCRIPTION = GFT, Redaktionssystem, XML

10 = TEMPLATE
10.template = FILE
10.template.file = fileadmin/vorlage.html
10.workOnSubpart = DOKUMENT
10.marks {
TRAILER = IMAGE
TRAILER.file = GIFBUILDER
TRAILER.file {
XY = 559, 86
backColor = #FFFFFF
10 = TEXT
10.text.field = subtitle // title
10.fontSize = 30
10.fontFile = fileadmin/fonts/arialbi.ttf
10.fontColor = #FFB070
10.niceText = 1
10.offset = 10, 75

20 = TEXT
20.text.field = subtitle // title
20.fontSize = 36
20.fontFile = fileadmin/fonts/arialb.ttf
20.fontColor = #F4EDE8
20.niceText = 1
20.offset = 40, 68
}

MENU_OBEN = HMENU
MENU_OBEN.special = directory
MENU_OBEN.special.value = 21
MENU_OBEN.1 = TMENU
MENU_OBEN.1.NO = 1
MENU_OBEN.1.NO.ATagParams = class="white"
MENU_OBEN.1.NO.linkWrap = &nbsp;|&nbsp;&#124; |*|
&nbsp;|&nbsp;&#124; |*| &nbsp;|

MENU_LINKS = HMENU
MENU_LINKS.special = directory
MENU_LINKS.special.value = 25
MENU_LINKS.1 = GMENU
MENU_LINKS.1.NO = 1
MENU_LINKS.1.NO {
XY = 150, 30
backColor = #FB9D00

10 = TEXT
10.text.field = title
10.fontColor = #FFFFFF
10.fontFile = fileadmin/fonts/arialb.ttf
10.fontSize = 10
10.niceText = 1
10.offset = 7, 21

20 = IMAGE
20.file = GIFBUILDER
20.file {
XY = 150,1
backColor = #FFFFFF
}
20.offset = 0, 29
}

MENU_LINKS.1.RO < .MENU_LINKS.1.NO
MENU_LINKS.1.RO.backColor = #FFB070
tmp < .backColor
backColor = #000000
5 < .10
5.fontColor < .tmp
5.offset = 9,23
}

g-style ·

Nochmal ich...kann sich das nich einmal schnell einer angucken?! such schon seit 2 tagen im internet rum und das forum war meine letzte anlaufstelle.

mfg

Unbekannter Benutzer ·

soweit ich das sehe, fehlt dir am Ende eine abschliessende geschweifte Klammer.

Zum fehlenden Inhalt: Wie wollen die Marker ###CONTENT### und ###RECHTS### angesprochen werden, wenn du diese im TS nicht definierst?

g-style ·

😃

jaja das ich sie definieren muß is schon klar nur wo und wie das ist mein problem. das tut das ich benutze hat mich bis dahin gebracht nur der content will nicht kommen..und alles andere was ich probiert hab geht auch nicht.

d.​walter ·

Hallo, also wenn das dein ganzer TS ist, dann fehlt da ja der Teil, der Typo3 sagt, dass er Content einfügen soll.

Das zeigt ja auch das im FE der Marker noch sichtbar ist --> er wird also nicht angesprochen.

Es fehlt sowas in die Richtung

01 seite = PAGE
02 seite.typeNum = 0
03 seite.10 = CONTENT
04 seite.10.table = tt_content
05
06 tt_content = COA
07 tt_content {
08 10 = TEXT
09 10.field = header
10 10.wrap = <b> | </b><br>
11
12 20 = TEXT
13 20.field = bodytext
14 }

Hoffe es hilft!

Unbekannter Benutzer ·

includeStatic: styles.content (default)
und dann die Marker CONTENT und RECHTS setzen, an derselben Stelle, wie du die anderen Marker platziert hast (Beispielsweise vor "MENU_OBEN = HMENU")

CONTENT = CONTENT
CONTENT < styles.content.getRight

RECHTS = CONTENT
RECHTS < styles.content.getRight
g-style ·

Hey Spitze danke!!

Mit dem letzten Vorschlag hab ich auf jeden Fall mal die Marker ansprechen können. Aber nun zerhauts mir das komplette Layout der Vorlage?!
UND 😉
Ich hab zwar noch ne Klammer gesetzt aber der Balken bleibt. Wenn man den Quelltext der Vorlage auf dem Rechner anguckt paßt alles. Wenn man sie online im FE anguckt fehlt der Schluß?!
Aber der Balken is ja eh das kleinere Übel wenn ich die Marker zwar ansprechen kann aber danach das Layout nicht stimmt. Und vorallem hab bekomm ich den Inhalt vom Impressum immernoch nicht zu Gesicht..nur die Marker sind weg.

g-style ·

HALT STOP 😉 SORRY

Inhalt wird angezeigt und Layout paßt auch wieder....nur noch das Problem mit dem Balken und dem komischen Quelltext.

Vielen, vielen, vielen Dank bis hierher erstmal.

g-style ·

Das ist ja das kleinste Problem 🙂
Hier das Template:

seite = PAGE
seite {
typeNum = 0
bodyTag = <body bgcolor="#FFFFFF">
meta.AUTHOR = GFT
meta.DESCRIPTION = GFT Redaktionssystem XML GFT GmbH

10 = TEMPLATE
10.template = FILE
10.template.file = fileadmin/vorlage.html
10.workOnSubpart = DOKUMENT
10.marks {
TRAILER = IMAGE
TRAILER.file = GIFBUILDER
TRAILER.file {
XY = 559, 86
backColor = #FFFFFF
10 = TEXT
10.text.field = subtitle // title
10.fontSize = 30
10.fontFile = fileadmin/fonts/arialbi.ttf
10.fontColor = #FFB070
10.niceText = 1
10.offset = 10, 75

20 = TEXT
20.text.field = subtitle // title
20.fontSize = 36
20.fontFile = fileadmin/fonts/arialb.ttf
20.fontColor = #F4EDE8
20.niceText = 1
20.offset = 40, 68
}

CONTENT = CONTENT
CONTENT {
table = tt_content
select.orderBy = sorting
select.where = colPos = 0
}

RECHTS = CONTENT
CONTENT {
table = tt_content
select.orderBy = sorting
select.where = colPos = 0
}

MENU_OBEN = HMENU
MENU_OBEN.special = directory
MENU_OBEN.special.value = 21
MENU_OBEN.1 = TMENU
MENU_OBEN.1.NO = 1
MENU_OBEN.1.NO.ATagParams = class="white"

MENU_OBEN.1.NO.linkWrap =  | | |*|
 | | |*|  |

MENU_LINKS = HMENU
MENU_LINKS.special = directory
MENU_LINKS.special.value = 25
MENU_LINKS.1 = GMENU
MENU_LINKS.1.NO = 1
MENU_LINKS.1.NO {
XY = 150, 30
backColor = #FB9D00

10 = TEXT
10.text.field = title
10.fontColor = #FFFFFF
10.fontFile = fileadmin/fonts/arialb.ttf
10.fontSize = 10
10.niceText = 1
10.offset = 7, 21

20 = IMAGE
20.file = GIFBUILDER
20.file {
XY = 150,1
backColor = #FFFFFF
}
20.offset = 0, 29
}

MENU_LINKS.1.RO < .MENU_LINKS.1.NO
MENU_LINKS.1.RO.backColor = #FFB070
tmp < .backColor
backColor = #000000
5 < .10
5.fontColor < .tmp
5.offset = 9,23
}
}

Und hier den Code der Vorlage:

<html>
<head>
<title>GFT Gesellschaft für technische Dienstleistung</title>

</head>
<body bgcolor="#FFFFFF">

<!-- ###DOKUMENT### begin -->
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td bgcolor="#000000"><img src="clear.gif" width="1" height="1" alt="" /></td>
<td bgcolor="#000000"><img src="clear.gif" width="1" height="1" alt="" /></td>
<td bgcolor="#000000"><img src="clear.gif" width="1" height="1" alt="" /></td>
</tr>
<tr>
<td bgcolor="#000000"><img src="clear.gif" width="1" height="1" alt="" /></td>
<td width="100%"><table border="0" width="100%" cellspacing="0" cellpadding="0">
<tr>
<td width="100%" valign="top" align="left"><div align="center"><img src="fileadmin/images/Logo.gif" hspace="0" vspace="0" alt="" /><br />
<br />
###TRAILER###</div></td>
</tr>
<tr>
<td width="100%" valign="top" align="left"><img src="clear.gif" width="1" height="1" alt="" /></td>
</tr>
<tr>
<td width="100%" bgcolor="#FFB070" align="right" valign="middle"><small><img src="clear.gif" width="1" height="3" alt="" /><br />
<font face="Arial" size="1" color="#FFFFFF">###MENU_OBEN###</font><img src="clear.gif" width="10" height="15" align="middle" alt="" />
</td>
</tr>
<tr>
<td width="100%" valign="top" align="left"><img src="clear.gif" width="1" height="1" alt="" />
</td>
</tr>
<tr>
<td width="100%" valign="top" align="left"><table border="0" width="100%" cellspacing="0" cellpadding="0" bgcolor="#FFFFFF">
<tr>
<td valign="top" align="left" width="146" bgcolor="#FB9D00">###MENU_LINKS###<br />
</td>
<td valign="top" align="left" width="23"><img src="clear.gif" width="1" height="1" alt="" />
</td>
<td valign="top" align="left"> <br />
###CONTENT### </td>
<td valign="top" align="left" width="8"><img src="clear.gif" width="1" height="1" alt="" /></td>
<td valign="top" align="left" width="1" bgcolor="#97CDA0"><img src="clear.gif" width="1" height="1" alt="" />

</td>
<td valign="top" align="left" width="140" bgcolor="#FFB070"> <br />
###RECHTS###
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
<td bgcolor="#000000"><img src="clear.gif" width="1" height="1" alt="" /></td>

</tr>
<tr>
<td bgcolor="#000000"><img src="clear.gif" width="1" height="1" alt="" /></td>
<td bgcolor="#000000"><img src="clear.gif" width="1" height="1" alt="" /></td>
<td bgcolor="#000000"><img src="clear.gif" width="1" height="1" alt="" /></td>
</tr>
</table>

</body>
</html>