[TYPO3-calendar] split field (like titel) in view

Mario Matzulla mario at matzullas.de
Thu Jan 17 16:10:44 CET 2013


Am 17.01.13 12:00, schrieb PM:
> Am 16.01.2013 20:19, schrieb Mario Matzulla:
>> Hi Patrick,
>>
>> Am 16.01.13 17:26, schrieb PM:
>>> Hello
>>>
>>> How is it possible to split a field/marker in the template.
>>>
>>> Example:
>>> The titles are like: Name Firstname - Event
>>> in the template they are used as ###TITLE###
>>>
>>> How can I define a marker ###TITLE_FIRSTPART### that uses ###TITLE###
>>> but splits it at the "-" and returns only the first part of the Title.
>>
>> Please search the web for typoscript and split. You will find some
>> examples :)
>>
>> Regards,
>> Mario
>>>
>>> (Using 2 fields instead of the title field is not a solution ;-) )
>>>
>>> Thanks.
>>
>
> Hi Mario
>
> It wasn't a problem of splitting, but more a problem of:
>
> How can i get the value of ###TITLE### in Typoscript for another marker:
> or better
> how can I give the Marker ###mystatictext### as Value the ###TITLE###
> value?
>
> plugin.tx_cal_controller.view.list.event.mystatictext = TEXT
> plugin.tx_cal_controller.view.list.event.mystatictext.value = ????(HOW
> TO GET HERE VALUE OF CURRENT EVENT-TITLE)????

plugin.tx_cal_controller.view.list.event.mystatictext.field = title

btw: this works for any column of the tx_cal_event table :)

Regards,
Mario

>
> afterwards I can use the splitting methods of typoscript...



More information about the TYPO3-project-calendar mailing list