[TYPO3-mvc] [!!!] FYI: Implemented first version of single table inheritance.
Jochen Rau
jochen.rau at typoplanet.de
Fri Apr 30 10:08:48 CEST 2010
Hi Sebastian.
On 28.04.10 11:25, Sebastian Kurfürst wrote:
>> That sounds cool (from now on I try to use the word "cool" and
>> "Scientific" as often as it makes sense ;-) ).
>>
>> Your idea might fit into the concept of overlays discussed in
>> "[TYPO3-mvc] shared templates/partials? Or something like skin support
>> for FLUID/FLOW3/ExtBase". Could you please open an issue for that, so we
>> can keep track of this.
> I think it's an interesting idea, but I'd suggest we discuss this
> further... Right now I am a bit unsure if a template is a property of an
> Controller _Object_ (which would mean NO inheritance), or if a template
> is a property of a Controller _Class_ (which would mean inheritance).
Another possibility: We could also attach the template to the domain
model (of course it is not a property of the domain model ;-)). That's
where the inheritance takes place. It's more like a micro MV(C) pattern.
Let's take the original example again:
Party
| |
Organization Person
| |
Company ScientificInstitution
I'd like to deliver a default template for my domain model.
my_ext/
Ressources/
Private/
Domain/ <-- other suggestions?
Model/
Company.html
Company.rdf
Company.xml
ScientificInstitution.html
ScientificInstitution.rdf
ScientificInstitution.xml
Then I am able to write
{company}
in my main template of the action.
> *Sorry, I'm in scientific mode right now* ;)
Shame on you ;-)
Jochen
More information about the TYPO3-project-typo3v4mvc
mailing list