[TYPO3-calendar] date / time in one row

Hartmut Steglich hartmut.steglich at web.de
Fri Jul 13 16:34:23 CEST 2012


Hello,

haven't tested but looks ok to me.

Could it be that "startdate" is empty when you check "if.equals.field = 
startdate"? Then startdate would not equal enddate.

Can't tell how to solve this but remember having the same problem. Maybe 
the value of "startdate" could first be saved somewhere else an then be 
used in plugin.tx_cal_controller.view.event.event.startdate and 
plugin.tx_cal_controller.view.event.event.endtime.override.cObject

Hartmut


Am 12.07.12 11:01 schrieb Heinz Schilling:
>
> Hi there
>
> I try to format in event view date and time in one row.
>
> In event_model.tmpl the markers are in one row:
> ###STARTDATE######STARTTIME######ENDDATE######ENDTIME###
>
> TypoScript:
> plugin.tx_cal_controller {
> view {
> event {
> event {
> startdate.wrap = <p>|
> startdate.dataWrap >
> enddate.dataWrap >
> starttime.dataWrap >
> starttime.noTrimWrap = |, ||
> endtime.dataWrap >
> endtime.noTrimWrap = |, ||
> }
> }
> }
> }
>
> Results:
> 10. Oktober 2012, 10:00 - 13. Oktober 2012, 12:00
> 18. Oktober 2012 - 20. Oktober 2012
> 10. Dezember 2012, 18:00, 20:00
>
> The last should be "10. Dezember 2012, 18:00 - 20:00" and I try to
> manipulate the noTrimWrap:
>
> plugin.tx_cal_controller {
> view {
> event {
> event {
> endtime.override {
> cObject = TEXT
> cObject {
> field = enddate
> if.equals.field = startdate
> required = 1
> noTrimWrap = |- ||
> }
> insertData = 1
> }
> }
> }
> }
> }
>
> Anybody a hint how to solve this?
>
> Thank you, Heinz



More information about the TYPO3-project-calendar mailing list