[TYPO3] simple calendar location

Administrator support at typo3.us
Thu Sep 20 09:34:07 CEST 2007


Here's the parts you need based on the plugin's original TS:
[pre]
plugin.tx_desimplecalendar_pi1.eventDetail = TEMPLATE
plugin.tx_desimplecalendar_pi1.eventDetail {
			template = HTML
			template.value (
			<h2>###title###</h2>
			<h3>###date### ###time### </h3>
			###image### ###description###
			###organizer### ###location### ###location_address### ###location_phone### ###maplink### ###category###
				)
			template.value.wrap = <div class="eventdetail_wrap">|</div>				
			marks {
..

				location = RECORDS
				location {
					source.field = location
					tables = tx_desimplecalendar_location
					conf.tx_desimplecalendar_location = TEXT
					conf.tx_desimplecalendar_location.field= name
					conf.tx_desimplecalendar_location.wrap = <br /><strong>Location:</strong>  | 
					conf.tx_desimplecalendar_location.required = 1

				}
			        location_address = RECORDS
				location_address {
					source.field = location
					tables = tx_desimplecalendar_location
					conf.tx_desimplecalendar_location = TEXT
					conf.tx_desimplecalendar_location.field= address
					conf.tx_desimplecalendar_location.wrap = <br />| 
					conf.tx_desimplecalendar_location.required = 1
					parseFunc < lib.parseFunc

				}

		                location_phone = RECORDS
				location_phone {
					source.field = location
					tables = tx_desimplecalendar_location
					conf.tx_desimplecalendar_location = TEXT
					conf.tx_desimplecalendar_location.field= phone
					conf.tx_desimplecalendar_location.wrap = <br /><br /><strong>Phone:</strong>  | 
					conf.tx_desimplecalendar_location.required = 1

				}
				maplink = RECORDS
				maplink {
					source.field = location
					tables = tx_desimplecalendar_location
					conf.tx_desimplecalendar_location = TEXT
					conf.tx_desimplecalendar_location.field= address
					conf.tx_desimplecalendar_location.wrap = <br /><br /><a href="http://maps.google.com/maps?f=q&hl=en&q=|" target="blank">Map/Directions</a>
					conf.tx_desimplecalendar_location.required = 1
					parseFunc > lib.parseFunc
				}

..
				}
				
			}
[/pre]


More information about the TYPO3-english mailing list