[TYPO3-english] TS condition on tt_content uid

Bernhard Kraft kraftb at kraftb.at
Mon Oct 12 10:05:01 CEST 2009


G.Unger schrieb:

> # Example: change the plugin config settings for a plugin with the uid 37
> [globalVar = TSFE:tt_content|uid = 37]
>    plugin.tt_news._LOCAL_LANG.de.preAuthor = Autor:
> [global]

Above this example you can read "Definitely not working" !!!

You won't be able to use conditions in this case. As conditions get
evalutated when the FE starts up. So you can not use them in this case,
as they will not get evaluated while the tt_content element get's
rendered. What you need is an "if" condition or a "CASE" object:


plugin.tt_news.displayList.content_stdWrap.cObject = CASE
plugin.tt_news.displayList.content_stdWrap.cObject {
	# Set key to UID of tt_news plugin
	key.data = cObj:parentRecordNumber

	# Default output format
	default = TEXT
	default.field = bodytext

	output format for tt_news plugin with UID 27
	27 = TEXT
	27.field = bodytext
	27.crop = 80 | ...
}


greets,
Bernhard


More information about the TYPO3-english mailing list