[Typo3-dev] Wrapping individual content elements - including conditions
S. Teuber
traveler_in_time at gmx.net
Thu Feb 5 15:56:50 CET 2004
Hi there,
I need to apply spaceAfter-values to individual content-elements like this:
tt_content.stdWrap.innerWrap.spaceAfter = 10
Now, what challenges me is the following: I need to wrap some elements
different from the others depending on some conditions:
1. If the element is of a certain content type is has to be wrapped
different (spaceAfter = 0)
2. The very last element has to be wrapped different from the successors
(spaceAfter = 0)
Handling the first condition is quite easy:
tt_content.stdWrap.innerWrap.cObject >
tt_content.stdWrap.innerWrap.cObject = CASE
tt_content.stdWrap.innerWrap.cObject {
key.field = CType
default = HTML
default.value = |<img src="clear.gif" width="1" height="23" border="0"
alt="" /><br />
mwx_zusammenfassung_pi1 = HTML
mwx_zusammenfassung_pi1.value =
}
But how do I check if an element is the very last one as required to meet
condition two?
Sven
More information about the TYPO3-dev
mailing list