[TYPO3-calendar] event view additional field

Lars Möller moeller at basis5.de
Mon Feb 20 13:16:10 CET 2012


thanks.
this works.

best
lars


Am 10.02.12 14:36, schrieb Mario Matzulla:
> Hi Lars,
>
> Am 10.02.12 11:05, schrieb Lars Möller:
>>
>> hello,
>>
>> i have created a little extension, to extend fields in cal. that works
>> fine.
>>
>> to render the fields in the event view out, i have this TS:
>>
>> plugin.tx_cal_controller.view.event.event{
>> additionalFields = tx_calbaseext2_referent
>
> hmm, additionalFields is a marker for the frontend editing, not to 
> display any field.
>>
>> tx_calbaseext2_referent_stdWrap {
>> dataWrap = test: |
>> }
>> }
>
> ***_stdWrap is used in frontend editing views only too
>>
>> the field tx_calbaseext2_referent appear after i added the line
>> additionalFields = tx_calbaseext2_referent
>> but the dataWrap has no effect. so the field is displayed without the
>> "test:".
>> did i use the dataWrap in a wrong way?
>
> I guess you just added ###TX_CALBASEEXT2_REFERENT### to the event 
> model template. By default, cal tries to find an according TS 
> configuration: tx_calbaseext2_referent defining a TypoScript object. 
> If this is not the case, it will output the database value, if a field 
> with the same name is available.
>
> So in order to get your TS running, you should define it like this:
>
> plugin.tx_cal_controller.view.event.event.tx_calbaseext2_referent = TEXT
> plugin.tx_cal_controller.view.event.event.tx_calbaseext2_referent {
> # if the name is the same as a database field, cal will set the value 
> as the current value
> current = 1
> dataWrap = test: |
> }
>
> Regards,
> Mario
>>
>> best
>> lars
>>
>>
>
> _______________________________________________
> TYPO3-project-calendar mailing list
> TYPO3-project-calendar at lists.typo3.org
> http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-project-calendar


More information about the TYPO3-project-calendar mailing list