[TYPO3-english] TS condition on tt_content uid
G.Unger
skyfreak1 at gmx.net
Wed Oct 14 16:01:03 CEST 2009
hi bernhard
thx for your reply, seems like one never finishes to learn ;)
as a workaround, I have meanwhile inserted the list completely by TS as a FCE.
I have tried yr suggestion and it works perfectly!
so I will kill my workaround with the FCE and use yr solution.
thx a lot,
GUIDO
On 2009-10-12 10:05:01 +0200, Bernhard Kraft <kraftb at kraftb.at> said:
> 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