[TYPO3-english] Use section_frame to set image max width?
Lukas Mattsson
lukas at antroposofi.info
Thu Jun 17 16:08:49 CEST 2010
Hello!
I am developing a site, where I use the section_frame field to add
different amounts of padding or margin to content elements. I managed to
make TYPO3 output the right markup, and set image max width with
TemplaVoila, but I can't manage to use section_frame to modify image max
width.
What I want is basically to reduce the image max width by 40 pixels if
section_frame is 2.
This is the code I'm trying:
# works fine
tt_content.stdWrap.innerWrap.cObject = CASE
tt_content.stdWrap.innerWrap.cObject {
key.field = section_frame
0 = TEXT
0.value = <div class="normal box">|</div>
1 = TEXT
1.value = |
2 = TEXT
2.value = <div class="x-padding box">|</div>
}
# Not sure if this works
[globalVar = TSFE:tt_content|section_frame = 2]
# Wouldn't some of the space settings do the trick?
tt_content.image.20.colSpace = 20
[end]
Best regards, Lukas
More information about the TYPO3-english
mailing list