[TYPO3-english] Extending tt_news

jeppe at donslund.net jeppe at donslund.net
Sat Sep 1 23:34:12 CEST 2018


But wouldn't the best solution not be to have the extending part in my own extension?
What if I need to update News at some point? Then I need to start over again if I extend News in the News code.


Jeppe

-----Oprindelig meddelelse-----
Fra: typo3-english-bounces at lists.typo3.org <typo3-english-bounces at lists.typo3.org> På vegne af Christian Platt
Sendt: 1. september 2018 06:27
Til: TYPO3 English <typo3-english at lists.typo3.org>
Emne: Re: [TYPO3-english] Extending tt_news

Ok,i guess, you will not find the new fields in the backend, when looking at an entry for for news.

But anyway, if you entend en extension with new fields, you also have to extend the model with setter and getter of your fields.

But you also have to extend the TCA of the model to have that data  stored.

https://docs.typo3.org/typo3cms/extensions/news/DeveloperManual/ExtendNews/AddCustomType/Index.html

Christian



> Am 31.08.2018 um 19:38 schrieb <jeppe at donslund.net> <jeppe at donslund.net>:
> 
> The tutorial doesn't say anything about extending the TCA, but maybe that part is missing.
> But no, I have not done anything with the TCA.
> 
> 
> Jeppe
> 
> -----Oprindelig meddelelse-----
> Fra: typo3-english-bounces at lists.typo3.org 
> <typo3-english-bounces at lists.typo3.org> På vegne af Christian Platt
> Sendt: 31. august 2018 19:11
> Til: TYPO3 English <typo3-english at lists.typo3.org>
> Emne: Re: [TYPO3-english] Extending tt_news
> 
> But the question for extending TCA remains….
> 
> Christian
> 
>> Am 31.08.2018 um 18:53 schrieb jeppe <jeppe at donslund.net>:
>> 
>> It was a miswriting. I meant news, not tt_news Jeppe
>> 
>> 
>> Sendt fra min Samsung Galaxy-smartphone.
>> -------- Oprindelig besked --------Fra: Jan Bartels 
>> <j.bartels at arcor.de> Dato: 31/08/2018  18.32  (GMT+01:00) Til: typo3-english at lists.typo3.org Emne: Re: [TYPO3-english] Extending tt_news Am 30.08.2018 um 20:10 schrieb jeppe at donslund.net:
>>> I have tried to extend tt_news with this tutorial 
>>> docs.typo3.org/typo3cms/extensions/news/2.2.1/Main/Tutorial/Extendin
>>> g News/In dex.html. But the fields doen't show up in backend.
>> tt_news != news
>> 
>> Jan
>> 
>> _______________________________________________
>> TYPO3-english mailing list
>> TYPO3-english at lists.typo3.org
>> http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-english
>> _______________________________________________
>> TYPO3-english mailing list
>> TYPO3-english at lists.typo3.org
>> http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-english
> 
> 
> _______________________________________________
> TYPO3-english mailing list
> TYPO3-english at lists.typo3.org
> http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-english




More information about the TYPO3-english mailing list