Project

General

Profile

Actions

Bug #60398

closed

Mapping existing model to new one

Added by Pascal Dürsteler over 10 years ago. Updated about 8 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Extbase
Target version:
-
Start date:
2014-07-19
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
6.2
PHP Version:
Tags:
Complexity:
Is Regression:
No
Sprint Focus:

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

foo.zip (6.95 KB) foo.zip Pascal Dürsteler, 2014-07-19 17:35
Actions #1

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.

Actions #2

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!

Actions #3

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.

Actions #5

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
Actions #6

Updated by Alexander Opitz about 10 years ago

IMHO This should be in Extbase

Actions #7

Updated by Anja Leichsenring about 8 years ago

  • Status changed from New to Closed

closed as per request.

Actions

Also available in: Atom PDF