[TYPO3-dev] Moving the topic of the discussion a littlebit--Based of thread "Change roadmap..."
Dimitri Tarassenko
mitka at mitka.us
Thu Apr 13 03:58:33 CEST 2006
JoH,
On 4/12/06, JoH <info at cybercraft.de> wrote:
> > What I am arguing is displayWeek() function should not be in the
> > calendar class at ALL. If it just displays something (as its name is
> > hinting), it should be implemented in the presentation layer
> > (template), and it's too damn bad TypoScript can't do it because it
> > can't iterate sets/arrays.
>
> Could you explain what can't be done with TypoScript in this case.
> Just tell me what's it gonna be and I will show you how to do it with TS
> only.
You can't make the month view of the calendar to start week lines with
Mondays instead of Sundays just by modifying the TS template, without
modifying the PHP object itself.
And if you manage to do this (which would truly impress me and would
be a masterpiece of TS wodoo ;), how about transposing the month view
in a way that the day of the week would be at the left corner, like
Mo 31 7
Tu 1 8
We 2 9
Th 3 10
..
etc., again, without modifying or XCLASSing the calendar object?
> > Separating control structures from markup limited practical value at
> > all if you don't separate the objects' logic from their presentation.
> > In the example I was talking about the control structure that iterates
> > over days in a week clearly belongs to the presentation level
> > (template), but not the object logics itself.
>
> Agreed. And this can be done with TypoScript only.
Just because it CAN be done (which I am not yet convinced in, I'll
wait for your examples;) it does not necessarily mean it's the most
efficient way. TYPO3 COULD in theory have been written in Visual
Basic.
--
Dimitri Tarassenko
More information about the TYPO3-dev
mailing list