Archive for the ‘Typo3 Snippet’ Category:
Typoscript CAL (Calendar) für SingleMaxW (1.4)
Hallo zusammen,
ich habe mich etwas mit “CAL” rumgeschlagen und hatte starke Probleme mit dem Wert “SingleMaxW”.
Denn dieser Wert wurde nicht angenommen, da im Typoscript wohl ein Fehler ist.
Hier der kleine TypoScript (Setup) fix.
1 2 3 4 5 6 7 8 9 10 | plugin.tx_cal_controller { view.event.event.image < plugin.tx_cal_controller.view.list.event.image view.event.event.image { stdWrap.dataWrap = <div id="eventimage">|</div> stdWrap.required = 1 1.imageLinkWrap.enable.field > 1.imageLinkWrap.enable.override = 0 file.maxW = {$plugin.tx_cal_controller.singleMaxW} } } |
Viel Spaß damit.
pmkshadowbox > Maximale Bildgröße oder Bildhöhe
Hallo Freunde die, die PMKShadowbox von Typo3 nutzen.
Mit dem kleinen Fix, könnt ihr verhindern, dass die Bilder zu groß beim öffnen werden.
Einfach das hier auf der Rootseite in Typoscript – Setup packen.
Dann sollte alles weitere beim neuen Laden stimmen.
1 2 3 4 5 6 7 8 | tt_content.image.20.1 { imageLinkWrap { typolink { parameter.cObject.file.maxW = 600 // max Breite des Popupbilds parameter.cObject.file.maxH = 600 // max Höhe des Popupbilds } } } |
Link:
| PMK Shadowbox ( pmkshadowbox )
Viel Spaß damit,
Marc
Layoutslide + Bodytag
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 | # **
# * unique body ids
# ********************
temp.body = COA
temp.body.10 = TEXT
temp.body.10 {
field = uid
wrap = <body id="page_|" class="layout1">
if.equals = 1
if.value.data = levelfield:-1,layout,slide
}
temp.body.20 < temp.body.10
temp.body.20.wrap = <body id="page_|" class="layout2">
temp.body.20.if.equals = 2
temp.body.30 < temp.body.10
temp.body.30.wrap = <body id="page_|" class="layout3">
temp.body.30.if.equals = 3
temp.body.40 < temp.body.10
temp.body.40.wrap = <body id="page_|" class="layout4">
temp.body.40.if.equals = 4
page.bodyTagCObject < temp.body |
Was macht das Script?
Es Slidet das Seitenlayout auf die Unterseiten.
Wofür braucht man das?
Man hat ein Template und möchte nur auf bestimmten Seiten durch die <body class> etwas durch sein CSS verändern.
Vorteil?
1 Template aber X möglichkeiten nur per CSS einfluss dadrauf zu nehmen
Danke Bernhard
