Hallo!
folgendes Problem (habe es bereits in der Mailing Liste gefragt jedoch ohne Erfolg đ )
Ich benutze zur Zeit die Kalender extension de_simplecalendar.
Nun hat der programmiere auf typo3.org auch eine kleine Anleitung zum erweitern
des Single View veröffentlicht, allerdings fehlt hier das Anzeigen der Bilder....
Hier ist der Teil den man ergÀnzen soll:
plugin.tx_desimplecalendar_pi1.eventDetail {
template.value >
template.value (
###date### ###time###<br>
###title###<br>
###image### ###description###<br>
###organizer###<br>
###location###<br>
###category###<br>
)
marks.organizer = RECORDS
marks.organizer {
source.field = organizer
tables = tx_desimplecalendar_organizer
conf.tx_desimplecalendar_organizer = TEXT
conf.tx_desimplecalendar_organizer.field = name
}
marks.location = RECORDS
marks.location {
source.field = location
tables = tx_desimplecalendar_location
conf.tx_desimplecalendar_location = TEXT
conf.tx_desimplecalendar_location.field = name
}
marks.category = RECORDS
marks.category {
source.field = category
tables = tx_desimplecalendar_category
conf.tx_desimplecalendar_category = TEXT
conf.tx_desimplecalendar_category.field = category
}
}
Ich habe nun im TSRef nach einer Anleitung zu conf.xxxx geschaut, allerdings wird es dabei nur anhand von TEXT erklÀrt, was muss ich denn tun
damit auch das IMAGE aus der DB gelesen und dargestellt wird?
StandardmĂ€Ăig holt die Extension sich die Bilder so:
image = IMAGE
image.file.import = uploads/tx_desimplecalendar/
image.file.import.field = image
image.file.maxW = {$plugin.tx_desimplecalendar_pi1.listView.image.maxW}
image.file.maxH = {$plugin.tx_desimplecalendar_pi1.listView.image.maxH}
image.wrap = <table class="list_item_imagetable"><tr><td>|</td></table>
und Text so:
title = TEXT
title.field = title
title.typolink.parameter = {$plugin.tx_desimplecalendar_pi1.listLink.parameter.page},{$plugin.tx_desimplecalendar_pi1.listLink.parameter.type} {$plugin.tx_desimplecalendar_pi1.listLink.parameter.target} {$plugin.tx_desimplecalendar_pi1.listLink.parameter.titleclass}
title.typolink.additionalParams.field = uid
title.typolink.additionalParams.wrap = &tx_desimplecalendar_pi1[showUid]=|
{$plugin.tx_desimplecalendar_pi1.backPath} title.typolink.additionalParams.postUserFunc = tx_desimplecalendar_form->getBackPath
Naja bin da nun leicht verwirrt und hab auch schon verschiedende Sachen probiert:
marks.caticon = RECORDS
marks.caticon {
source.field = caticon
tables = tx_desimplecalendar_category
conf.tx_desimplecalendar_category = IMAGE
conf.tx_desimplecalendar_category.field = caticon
}
und
marks.caticon = RECORDS
marks.caticon {
caticon = IMAGE
caticon.file.import = uploads/tx_desimplecalendar/
caticon.file.import.field = caticon
caticon.file.maxW = {$plugin.tx_desimplecalendar_pi1.listView.image.maxW}
caticon.file.maxH = {$plugin.tx_desimplecalendar_pi1.listView.image.maxH}
caticon.wrap = <table class="list_item_imagetable"><tr><td>|</td></table>
}
Und vorher hab ich natĂŒrlich auch noch einen marker passend zu caticon gesetzt....
Bin fĂŒr jede HIlfe dankbar und wĂŒrde mich ĂŒber eine kleine ErklĂ€rung freuen!!
Vielen Dank !
Gruss aus Rheinhessen