Bug #60398
closedMapping existing model to new one
0%
Description
After discussing with a few people on slack (Hello again, Maddy ^^) and investing a few hours every now and then, I decided to file an issue, as this is either a bug, a missing feature, or undocumented.
Situation
You have a full-blown extension (tx_news in this case) that provides almost everything you need. I want to extend that existing model and be able to use new fields through the existing tx_news controller/view without having to copy-paste everything into a custom controller (as this would result in unneeded maintenance work).
What I did * Set up tx_news * integrated the list plugin on a page * wrote some news and categorized them * set up extension attached to this issue * included static typoscript from it
Expectation
News categories' classes are mapping properly to my new model.
Result
News categories are mapped, however, all attributes except uid, pid and _localizedUid are NULL instead of having the original value. When the static typoscript from this ext is removed, catgeories are mapped again to tx_news, with proper attribute values.
Is this even possible? I feel it should, otherwise, the mapping configuration properties wouldn't make much sense IMHO.
Files
Updated by Frans Saris over 10 years ago
Did you have a look at the documentation of ext:news?
Keep in mind that since version 3.0 news uses/extends the core categories. Zo extend class of tx_news but tca and DB table sys_category.
If you extend the class as discribed in the manual the classloader will make sure your proporties are availeble.
Updated by Pascal Dürsteler over 10 years ago
Aww shuks, I just saw a point in the tx_news manual that I haven't tried. Will report back. Thanks for the hint!
Updated by Pascal Dürsteler over 10 years ago
My bad, sorry for bothering, works in that case now with that special tx_news textfile. However, I'm not sure if that's also the case for other extensions. But this can be closed for now IMHO.
Updated by Frans Saris over 10 years ago
Have a look at http://typo3.org/extensions/repository/view/extender for that.
Updated by Alexander Opitz about 10 years ago
- Project changed from 534 to TYPO3 Core
- Category changed from Extbase to Extbase
- TYPO3 Version set to 6.2
- Is Regression set to No
Updated by Anja Leichsenring about 8 years ago
- Status changed from New to Closed
closed as per request.