Zum Inhalt springen

Bilder aus tt_content auslesen

Erstellt am 30. März 2006 · 3 Antworten · letzte Antwort am 24. April 2006

Tags: Inhaltselemente, Bilder, Frage

Peaff ·

hallo,

text wird dargestellt, die Bilder leider nicht. Es spielt auch keine Rolle, ob ich im Text/Bild Modus oder im reinen Bildmodus einen Inhalt anlege.

mein Code:

seite.10.marks.INHALT = CONTENT
seite.10.marks.INHALT.table = tt_content
tt_content=COA
tt_content{
wrap = <table><tr><td> | </td></tr></table><br /><br />
10 = TEXT
10.field = header
10.wrap = <b> | </b><br />
11 = TEXT
11.field = bodytext

12 = IMAGE
12.field = image

}

Das müsste doch einfach zu beantworten sein...

Michaelh74 ·

wieso nimmst Du nicht einfach css_styled_content ?

Dann reich frolgende Zeile völlig aus:

seite.10.marks.INHALT < styles.content.get

Der Rest wird dann automatisch erledigt u. von T3 richtig eingebunden.

Viele Grüße
Michael

Peaff ·

auf diese Weise gibt er mir gar nichts aus...

sogar der Marker ###INHALT### wird sichtbar

brauch ich da vielleicht ne erweiterung oder so?

Danke!!!

angsch-li ·

Ich habe ein ähnliches Problem. Konntest du es lösen?

Bei mir funktioniert normaler Text.. jedoch wenni ch Text mit Bild einsetzen möchte zeigt es das Bild nicht an, sondern nur den Text. :-(

Kann mir jemand helfen?

Das Css Styled Content habe ich eingebunden, aber es funktioniert trotzdem nicht.

Meine Seite:

http://www.individualdesign.ch/shs/index.php?id=4

Mein TypoScript:

# Default PAGE object:
config.cache_period = 10
page = PAGE
page {
typeNum = 0

includeLibs.gmenu_layers = media/scripts/gmenu_layers.php

# Allgemeine Seiteneigenschaften setzen
bodyTag = <body bgcolor="000000" topmargin="0" leftmargin="0">
meta.AUTHOR = Angela Herzig
meta.DESCRIPTION = SHS - Senn Hospitality Services GmbH wirkt in der Gastronomie und Hotellerie als Unterstützung neuer Konzeptentwicklungen. Dieses Kleinunternehmen wird geführt von Herr Gudio Senn.
stylesheet = fileadmin/templates/main/style.css

# Die Designvorlage integrieren
workOnSubpart = DOKUMENT

10 = TEMPLATE
10.template = FILE
10.template.file = fileadmin/templates/main/template.html
10.marks {

# Den Platzhalter Adresse ansprechen
ADRESSE = TEXT
ADRESSE.value = <font size="2">SHS - Senn Hospitality Services GmbH <font color="#F26522">|</font> Ifangstrasse 19 <font color="#F26522">|</font> CH-5525 Fischbach-Göslikon<br />Tel +41 56 610 47 42 <font color="#F26522">|</font> Fax +41 56 610 47 43 <font color="#F26522">|</font> Mobil +41 79 402 18 06 <font color="#F26522">|</font> info@shs-gmbh.ch <font color="#F26522">|</font> www.shs-gmbh.ch</font>

# Text ansprechen
#INHALT = CONTENT

# CSS Styled Content
INHALT < styles.content.get
INHALT {
select.orderBy = sorting
select.where = colPos = 0
}

# Das Bild einlesen
BILD = IMAGE
BILD.file.import = uploads/media/
BILD.file.import.field = media
BILD.file.import.listNum = 0

# Das Hauptmenü erstellen
MENU1= HMENU
MENU1.special = directory
MENU1.special.value = 3
MENU1.1 = GMENU_LAYERS
MENU1.1 {
wrap = <table border="0" cellpadding="0" cellspacing="0"><tr>|</tr></table>
NO.wrap = <td>|</td>
NO.imgParams = hspace="0"
layerStyle = position:absolute;top:0px;left:0px;width:0px;VISIBILITY:hidden;
relativeToTriggerItem = 1
relativeToTriggerItem.addHeight=1
lockPosition = x
xPosOffset = -0
topOffset =0
expAll = 1
hideMenuTimer = 3000
hideMenuWhenNotOver = 2
freezeMouseover = 0
NO {
backColor = #F26522||#F68B20||#F8A31C||#FFC20E
XY = 195, 20

10 = TEXT
10.align = center
10.text.field = title
10.fontFile = fileadmin/template/fonts/arial.ttf
10.fontSize = 11
10.fontColor = #000000
10.niceText = 0
10.offset = 0,14
20 = BOX
20.dimensions = 0,0,1,19 |*| 0,0,1,19 |*| 20,20,0,19
20.color = #ffffff
20.align = r
}
RO <.NO
RO = 1
RO {
backColor = #757575
10.fontColor = #ffffff
}
ACT <.NO
ACT = 1
ACT {
backColor = #757575
10.fontColor = #ffffff
}

}

MENU1.2 = GMENU_LAYERS
MENU1.2 {
layerStyle = position:absolute;top:85px;left:5px;width:10px;VISIBILITY:hidden;
leftOffset = 169
xPosOffset = 0
yPosOffset = 0
lockPosition = x
hideMenuWhenNotOver = 1
relativeToParentLayer=1
dontFollowMouse = 1
expAll = 1
NO {
backColor = #ffffff

XY = 195, 20
10 = TEXT
10.align = center
10.text.field = title
10.fontFile = fileadmin/template/fonts/arial.ttf
10.fontSize = 10
10.fontColor = #000000
10.niceText = 0
10.offset = 0,14

20 = BOX
20.dimensions = 0,0,1,20
20.color = #cccccc

30 = BOX
30.dimensions = 0,0,195,1
30.color = #cccccc

50 < .20

50.align = r

60 = |*||*| || BOX
60.dimensions = 0,0,195,1
60.color = #cccccc
60.align = ,b
}
RO <.NO
RO = 1
RO {
backColor = #757575
10.fontColor = #ffffff
}
ACT <.NO
ACT = 1
ACT {
backColor = #757575
10.fontColor = #ffffff
}
}

# Das Untermenü erstellen
UMENU = HMENU
UMENU {
special = directory
special.value = 2
1 = TMENU
1.NO = 1
1.NO.linkWrap = <font color="#F26522"> | |</font> |*| <font color="#F26522"> | |</font> |*| <font color="#F26522"> </font>
1.NO {

10 = TEXT
10.text.field = title
10.fontFile = fileadmin/template/fonts/arial.ttf
10.fontSize = 11
10.fontColor = #ffffff
10.niceText = 0
}
RO <.NO
RO = 1
RO {
10.fontColor = #F68B20
}

}


}

}

# Text einfügen
tt_content = CASE
tt_content {
key.field = header_layout
1 = COA
1 {
wrap = <table border="0"> | </table>
#field = CType
#wrap= <b>CType "|" not defined! </b>
10 = TEXT
10.field = header
10.wrap = <br /><br /><font color="#F26522"><font size="2.5"><b> | </b></font></font>
20 = TEXT
20.field = bodytext
20.wrap = <tr><td><font size="2"> | </font></td><hr size="1" /></hr></tr>
}
2 = COA
2 {
wrap = <table border="0"> | </table>
#field = CType
#wrap= <b>CType "|" not defined! </b>
10 = TEXT
10.field = header
10.wrap = <br /><br /><font color="#F68B20"><font size="2.5"><b> | </b></font></font>
20 = TEXT
20.field = bodytext
20.wrap = <tr><td><font size="2"> | </font></td><hr size="1" /></hr></tr>
}
3 = COA
3 {
wrap = <table border="0"> | </table>
#field = CType
#wrap= <b>CType "|" not defined! </b>
10 = TEXT
10.field = header
10.wrap = <br /><br /><font color="#F8A31C"><font size="2.5"><b> | </b></font></font>
20 = TEXT
20.field = bodytext
20.wrap = <tr><td><font size="2"> | </font></td><hr size="1" /></hr></tr>
}
4 = COA
4 {
wrap = <table border="0"> | </table>
10 = TEXT
10.field = header

10.wrap = <br /><br /><font color="#FFC20E"><font size="2.5"><b> | </b></font></font>
20 = TEXT
20.field = bodytext
20.wrap = <tr><td><font size="2"> | </font></td><hr size="1" /></hr></tr>
}
5 = COA
5 {
wrap = <table border="0"> | </table>
10 = TEXT
10.field = header
10.wrap = <br /><br /><font color="#757575"><font size="2.5"><b> | </b></font></font>
20 = TEXT
20.field = bodytext
20.wrap = <tr><td><font size="2"> | </font></td><hr size="1" /></hr></tr>
}
default = COA
default {
10 = TEXT
10.field = header
10.wrap = <b> | </b><br />
20 = TEXT
20.field = bodytext
}
}