[TYPO3] Applying a TS if-condition on an attribute

Robert Böttner r.boettner at gmx.de
Fri May 11 14:59:45 CEST 2007


Hi,

does anyone have more experience with TS ifs? I need to wrap an
attribute value in singleView by a condition. Only the attribute named
"endurance" should be wrapped.

plugin.tx_commerce_pi1 {
	singleView.attributes {
		fields {
			value = stdWrap
			value.wrap = <span class="special">|</span>
			value.wrap.if {
				value = endurance
				equals.field = title
			}
		}
	}
}

Cheers
Robert.


More information about the TYPO3-english mailing list