[TYPO3-calendar] how to realize a weekly list of events
Christian Hernmarck
linux at lists.hernmarck.ch
Thu Dec 12 18:26:07 CET 2013
Hi Mario
I did not quite get the "tataaa"...
Mario Matzulla schrieb am Mittwoch 11 Dezember 2013 18:13 im Beitrag
<mailman.1.1386781991.645.typo3-project-calendar at lists.typo3.org>:
> Hi Christian,
>
> Am 11.12.13 12:01, schrieb Christian Hernmarck:
>> Hi!
>>
>> For a project I need to show th events for the next 7 days (and
>> then with a pagebrowser for the weeks) - but it should look like a
>> list of events...
>>
>> eg:
>> Tue Dec 10
>> 13h30 Event1
>> 15h00 Event 2
>> Thu Dec 12
>> 13h40 Event 3
>> 19h00 Event 4
>>
>> and not 7 columns with Mon-Sun... (like a timetable... as default
>> week view).
>> ...
>
> You can use the week view with the list template. Week-view "just
> defines the range to search for events (watch out for the
> startPointCorrection and endPointCorrection TS option) and the
> template defines the kind of rendering. Have a look at the
> month.tmpl which has the ###LIST### marker included.
> Use the view.list.xxx TS options to configure the list.
Hm...
am I wrong? I thought the view also defines the possible
MARKERS... so with view = week - you dont have a ###LIST###...
I use ts_standard with the standard_templates (as a base). Should I
use the "NewTemplate" thing?
So far I have:
const:
plugin.tx_cal_controller {
pidList = 28
view {
event.eventModelTemplate = fileadmin/tpl/cal_event_model.tmpl
list {
listTemplate = fileadmin/tpl/cal_list.tmpl
}
week {
weekTemplate = fileadmin/tpl/cal_week.tmpl
newWeekTemplate = fileadmin/tpl/cal_newWeek.tmpl
}
}
}
setup:
plugin.tx_cal_controller {
dontListenToFlexForm = 1
# useNewTemplatesAndRendering = 0
allowSubscribe = 0
view = week
view {
allowedViews = week,list
list {
enableWeekWrapper = 1
}
week {
event {
length.stdWrap.wrap = | / 60
location.dataWrap = <span class="location">|</span>
organizer.dataWrap = <span>|</span>
}
}
event {
event.defaultEventLength = 3600
}
}
}
So far I don't need the view.list entries...
I have more or less this in the cal_week.tmpl
###WEEK###
and this in the cal_newWeek.tmpl
<!-- ###WEEK_SUBPART### start-->
###DAYS###
<!-- ###WEEK_SUBPART### end -->
<!-- ###DAY_SUBPART### start-->
<div class="wrapper ###DAY_CLASSES###">###DAY_TITLE###</div>
###EVENTS_COLUMN###
<div><hr></div>
<!-- ###DAY_SUBPART### end -->
and in the cal_event_model.tmpl I have this changed:
<!--###TEMPLATE_PHPICALENDAR_EVENT_WEEK### begin -->
<div>###STARTTIME### | ###LENGTH### | ###TITLE### | Stufe... |
###ORGANIZER### | ###LOCATION### | <!-- ###EVENT_LINK### start --
>><!-- ###EVENT_LINK### end --></div>
<!--###TEMPLATE_PHPICALENDAR_EVENT_WEEK### end -->
... not finished...
This works - but I'd like to have the date near the weekday-name
(###DAY_TITLE###) ("Monday 2013-12-23" or similar)... but cannot find
the right MARKER for this...
You say I'd set
view.week.weekTemplate = path-to-list.tmpl
and there I'd either need a ###WEEK_TEMPLATE### part (when
useNewTemplatesAndRendering = 1) or only a ###WEEK### if I read the
source correctly...
Hope you understand...
Gruesse Christian
More information about the TYPO3-project-calendar
mailing list