[TYPO3-dev] Moving the topic of the discussion a little bit--Based of thread "Change roadmap..."
Dimitri Tarassenko
mitka at mitka.us
Thu Apr 13 01:14:26 CEST 2006
JoH,
On 4/12/06, JoH <info at cybercraft.de> wrote:
> > Iterating items in a set just to display them is the task of
> > presentation layer. And right now in Smarty you can do it in the
> > template, while in TS+Markers you have to do it in your object code.
>
> Where it belongs IMHO.
> As far as I understood seperation means
> Design - Logic - Storage
> for current TYPO3
> HTML/CSS - TypoScript/PHP - MySQL
>
> I don't see how this can be realized with smarty.
I think we are talking about different things. HTML/CSS is just a part
of presentation layer, and a very small at that. To give you a
real-life example, let's take calendar extension.
Russians are somewhat weird people and their week starts on Monday.
Does this fact change any _LOGICS_ as far as the calendar should work?
No, it just changes the way it should be rendered when we are viewing
a month at a time (we should put Monday at the beginning of the line,
all other things being equal). Therefore, only a change in
_PRESENTATION_LAYER_ is needed, while all the code that handles
recurring events and so on still makes sense.
Can you implement this change that in TS+Marker _templates_? No, you
have to modify displayWeek() function in class.tx_calendar_pi1.php by
XCLASSing it, while in reality all you need is just a different look.
--
Dimitri Tarassenko
More information about the TYPO3-dev
mailing list