[TYPO3-mvc] extending news

Henjo Hoeksma me at henjohoeksma.nl
Mon Nov 14 21:57:07 CET 2011


Or if it is a common field, put in a feature request + patch :-)

Kind regards,

Henjo

Problems are small because we learned how to deal with them.
Problems are big because we need to learn how to deal with them.


On Mon, Nov 14, 2011 at 21:56, Henjo Hoeksma <me at henjohoeksma.nl> wrote:

> Hi Stefan,
>
> the cleanest solution would be - and I do not know another way - to create
> your own extension which extends the news extension.
>
> Out of object oriented thinking that would be the way to go.
>
> You could use everything from the news extension, as is: you can extend
> the repositories, the controllers, the model.
>
> In the end you will have an extended news extension, exactly like you have
> in mind (functionality wise spoken).
>
> What you could also do, is clone the original news ext (do not know if it
> is in git though) and create your own branch.
> Since you're only adding one field, merging the HEAD into your branch will
> most likely be painless. :-)
>
> Kind regards,
>
> Henjo
>
> Problems are small because we learned how to deal with them.
> Problems are big because we need to learn how to deal with them.
>
>
> On Mon, Nov 14, 2011 at 21:31, Stefano Cecere <scecere at krur.com> wrote:
>
>> On Mon, 14 Nov 2011 20:18:30 +0100, Henjo Hoeksma <me at henjohoeksma.nl>
>> wrote:
>>
>>  Hi Stefan,
>>>
>>> yes, you can use class extension, i.e. your model extends the news model.
>>> And yes, you should set up the class mapping within typoscript.
>>>
>>
>> thank you Henjo
>> but this way i extend an existing model, and i have to write my own
>> controllers, right?
>> ( i already could develop such extensions, where i expand existing models.
>>
>> what if i just want to tell the existing news controller, to use the news
>> extended model?
>> theorically it's complicated, or not?
>>
>> say i just want to add a single field to the news model, and then just
>> add that field in the existing news template with a simple {news.mynewfield}
>>
>> what do you think?
>>
>> thanks
>>
>> s
>>
>>
>>
>>
>> --
>> ____    ___   __  _ ______________________
>>
>>  Stefano Cecere
>>  Krur multimedia studio
>> ______________________________**_________________
>> TYPO3-project-typo3v4mvc mailing list
>> TYPO3-project-typo3v4mvc@**lists.typo3.org<TYPO3-project-typo3v4mvc at lists.typo3.org>
>> http://lists.typo3.org/cgi-**bin/mailman/listinfo/typo3-**
>> project-typo3v4mvc<http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-project-typo3v4mvc>
>>
>
>


More information about the TYPO3-project-typo3v4mvc mailing list