[TYPO3-calendar] date / time in one row

Heinz Schilling scil at zhaw.ch
Thu Jul 12 11:01:26 CEST 2012


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