Hallo liebe Typo3er,
ich möchte gerne alle Bilder aus tt_content automatisch mit Schatten hinterlegen. Das geht auch schon mit folgendem TS:
tt_content.image.20.1.file >
tt_content.image.20.1.file = GIFBUILDER
tt_content.image.20.1.file {
60 = LOAD_REGISTER
60 {
abc = 4
}
XY = [10.w]+20,[10.h]+20
# The background color of the image/content
backColor = #ffffff
# Create a "dummy" image from the real image which is 20 pixel
# smaller than the set width.
10 = IMAGE
10 {
file.import.current = 1
file.width.stdWrap = 1
file.width.stdWrap.field = imagewidth
file.width.stdWrap.wrap = |-20
file.width.prioriCalc = intval
offset = 10,10
}
# Draw a black/gray box over the dummy image
20 = BOX
20.dimensions = 10,10,[10.w],[10.h]
# You have to set lib.shadowIntensity in your constants.
20.color = {$lib.shadowIntensity}
# Blur the black box
30 = EFFECT
30.value = blur=99 |
# Blur again if required (wider blurred edge/shadow)
# 31 < .30
# Put the image on top again at a slightly more left top position.
50 < .10
50.offset = 5,5
}
Jetzt möchte ich aber trotzdem einen Link auf das Bild setzen, um das Bild dann in einem neuen Fenster grösser und auch wieder mit Schatten anzuzeigen.
Folgendes TS funzt auch:
tt_content.image.20.1 = IMAGE
tt_content.image.20.1 {
stdWrap.typolink.enable = 1
stdWrap.typolink.parameter = 4 230x450:resizable=0,location=1
stdWrap.typolink.parameter.data = register:ORIG_FILENAME
}
Zumindest teilweise. Irgendwie klappt es noch nicht, dass:
1. Beide Parameter gleichzeitig verwendet werden
2. ich die Grösse des Originalbilds in die 4te Zeile bekomme, also statt 230x450, die richtigen Werte des Originalbilds.
Kann mir da mal jemand weiterhelfen ?