[TYPO3-dev] update custom field/column in MM table
Jigal van Hemert
jigal.van.hemert at typo3.org
Wed Jan 27 22:51:33 CET 2016
Hi,
On 26/01/2016 10:07, NGUYEN Duc Quan wrote:
> I am currently stuck with a problem on how to manipulate (edit/update) a
> additional fields/columns from a MM table. I am working with typo3 7.6.2
> and developing in extbase/fluid.
For this there are some TCA properties that were originally meant for
IRRE (Inline Relational Record Editing) [1].
For use in Extbase you need to adjust the model. You need a model for
the relationship in which you can include the additional properties.
This is a bit explained in [2] and a demonstration extension is
available in [3].
To explain it a bit, let's use the example of relationships (like
marriage, living together, etcetera) between people. If you take this on
an international level, there can be a relationship with more than one
person.
So, you make a model for the relationship, add fields for the
relationship type and other properties and map this to the MM table.
From one person you can read the relationships and for each
relationship look at the properties of the attached person.
[1]
https://docs.typo3.org/typo3cms/TCAReference/Reference/Columns/Inline/Index.html
[2]
http://stackoverflow.com/questions/26733567/typo3-extbase-irre-add-existing-records-with-foreign-selector
[3] https://github.com/lorenzulrich/irreforeignselectordemo
--
Jigal van Hemert
TYPO3 CMS Active Contributor
TYPO3 .... inspiring people to share!
Get involved: typo3.org
More information about the TYPO3-dev
mailing list