[TYPO3-calendar] event view additional field

Mario Matzulla mario at matzullas.de
Fri Feb 10 14:36:49 CET 2012


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
>
>



More information about the TYPO3-project-calendar mailing list