GIFBUILDER aus tt_content Click-Enlarge
| Autor | Nachricht |
|---|---|
|
Verfasst am: 29. 03. 2008 [14:11]
|
|
|
waldosparding
Themenersteller
Dabei seit: 20.01.2004
Beiträge: 295
|
Hallo liebe Typo3er, ich möchte gerne alle Bilder aus tt_content automatisch mit Schatten hinterlegen. Das geht auch schon mit folgendem TS: TYPOSCRIPT 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: TYPOSCRIPT 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:
Kann mir da mal jemand weiterhelfen ? |
|
Verfasst am: 29. 03. 2008 [23:13]
|
|
|
waldosparding
Themenersteller
Dabei seit: 20.01.2004
Beiträge: 295
|
Ich habs jetzt mit mootools/slimbox aber ohne weitere exts nur mit TS hinbekommen. TS sieht so aus: TYPOSCRIPT page.headerData { 1234 = TEXT 1234.value = <script type="text/javascript" src="fileadmin/templates/js/mootools.js"></script> 1235 = TEXT 1235.value = <script type="text/javascript" src="fileadmin/templates/js/slimbox.js"></script> } 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 = #bebe68 # 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 = |-10 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=60| # Put the image on top again at a slightly more left top position. 50 < .10 50.offset = 5,5 } tt_content.image.20.1 = IMAGE tt_content.image.20.1 { stdWrap.typolink.enable = 1 stdWrap.typolink.parameter.insertData = 1 stdWrap.typolink.parameter = {register:ORIG_FILENAME} stdWrap.typolink.ATagParams = rel="lightbox[bilder{page:uid}]" stdWrap.typolink.ATagParams.insertData = 1 } |




