Zum Inhalt springen

Wrap um IMAGE/IMGTEXT erstellen

Erstellt am 5. Januar 2005 · 4 Antworten · letzte Antwort am 6. Januar 2005

Tags: Inhaltselemente, Frage

winiman ·

Hallo zusammen!

Um ein IMAGE oder IMGTEXT ohne die Überschrift darzustellen verwende ich folgendes TS:

-------------------------------------------------------------------------------------------------------------------
# *****************
# CType: image
# *****************
# (also used for rendering 'textpic' type):
tt_content.image = COA
tt_content.image.10 = < lib.stdheader
tt_content.image.20 = IMGTEXT
tt_content.image.20 {
imgList.field = image
textPos.field = imageorient
imgPath = uploads/pics/
imgObjNum = 1
1 {
file.import.current = 1
file.width.field = imagewidth
params = align="top"
imageLinkWrap = 1
imageLinkWrap {
bodyTag =
wrap = <a href="javascript:close();"> | </a>
width = {$styles.content.imgtext.linkWrap.width}
height = {$styles.content.imgtext.linkWrap.height}
effects = {$styles.content.imgtext.linkWrap.effects}

JSwindow = 1
JSwindow.newWindow = {$styles.content.imgtext.linkWrap.newWindow}
JSwindow.expand = 0,0

enable.field = image_zoom
enable.ifEmpty.field = image_link

typolink.parameter.field = image_link
typolink.parameter.listNum.stdWrap.data = register : IMAGE_NUM
typolink.target = {$styles.content.links.target}
typolink.extTarget = {$styles.content.links.extTarget}
}
}

maxW = {$styles.content.imgtext.maxW}
maxW.override.data = register:maxImageWidth
maxWInText = {$styles.content.imgtext.maxWInText}
maxWInText.override.data = register:maxImageWidthInText

equalH.field = imageheight
spaceBelowAbove = 6

image_compression.field = image_compression
image_effects.field = image_effects

noRows.field = image_noRows

cols.field = imagecols
border.field = imageborder
caption {
1 = TEXT
1 {
if.isFalse = {$styles.content.imgtext.captionSplit}
field = imagecaption
required = 1
parseFunc = < lib.parseFunc
br = 1
fontTag = <p class="content">|</p>
wrapAlign.field = imagecaption_position
}
}
captionSplit = {$styles.content.imgtext.captionSplit}
captionSplit.cObject = TEXT
captionSplit.cObject.field = imagecaption
captionSplit.stdWrap < .caption.1
captionSplit.stdWrap {
field >
if >
}

borderCol = {$styles.content.imgtext.borderColor}
borderThick = {$styles.content.imgtext.borderThick}
colSpace = {$styles.content.imgtext.colSpace}
rowSpace = {$styles.content.imgtext.rowSpace}
textMargin = {$styles.content.imgtext.textMargin}

editIcons = tt_content : image [imageorient|imagewidth|imageheight],
[imagecols|image_noRows|imageborder],[image_link|image_zoom],[image_compress
ion|image_effects|image_frames],imagecaption[imagecaption_position]
editIcons.iconTitle.data =
LLL:EXT:css_styled_content/pi1/locallang.php:eIcon.images

caption.editIcons = tt_content : imagecaption[imagecaption_position]
caption.editIcons.beforeLastTag=1
caption.editIcons.iconTitle.data =
LLL:EXT:css_styled_content/pi1/locallang.php:eIcon.caption

stdWrap.prefixComment = 2 | Image block:
}

-------------------------------------------------------------------------------------------------------------------

Wie schaffe ich es nun, um dieses ganze Konstrukt einen Wrap in Form z.B. einer selbst formatierten Tabellenzelle zu erstellen resp. wie schaffe ich es, diesen Wrap auch noch je nach Eingabe unter header_layout zu unterteilen nach Normal, Layout1, Layout2, etc.?

Bitte helft mir...! ;-)

MfG

Thorsten

johanness ·

Wie schaffe ich es nun, um dieses ganze Konstrukt einen Wrap in Form z.B. einer selbst formatierten Tabellenzelle zu erstellen resp. wie schaffe ich es, diesen Wrap auch noch je nach Eingabe unter header_layout zu unterteilen nach Normal, Layout1, Layout2, etc.?

Du kannst für die Überschrift ein eigenes Content-Element verwenden und dann für die (Image-)Texte verschiedene Layouts ("Layout" oder "Rahmen") verwenden.

winiman ·

Hallo!

Erstmal danke für Deine Antwort.

Das ich für die Überschrift ein eigenes Content-Element verwenden kann, ist mir bekannt und das funktioniert auch.

Allerdings hätte ich gerne gewusst, wie ich um den Inhalt des Inhaltes (Bild bzw. Bild mit Text) von o.g. Ausdruck einen Wrap mache bzw. an welcher Stelle ich wie den Wrap einzufügen habe, damit ich z.B. um das Bild bzw. das Bild mit Text ein Tabelle mit eigenem Layout setzen kann.

Ich hätte also gerne im Prinzip einen Wrap um die Überschrift (ist mir bekannt wie das geht) und einen um den restlichen Content (ist mir beim Text auch bekannt, allerdings nicht wie gesagt bei Bild bzw. Bild mit Text).

Weiss jemand Rat?

MfG

Thorsten

winiman ·

Hallo!

Ja, so etwas wie auf der Fahrschulseite möchte ich erreichen, wenn man davon ausgehen kann, dass es sich bei dem Namen des Fahrlehrers um die Überschrift und dem Bild resp. dem Text um den restlichen Content handelt.

Allerdings möchte ich ein bestimmtes Tabellenlayout, genauso wie in der Fahrschulseite, um den Content machen.

Hast Du da eine Lösung?

MfG

Thorsten