Add existing records to IRRE field
Currently it's only possible to create a completely new record within a IRRE field.
If you wan't to use IRRE for existing tables, exisiting extensions and existing records it should be possible to add existing records to a IRRE field.
Just the button is missing with the folder icon which leads to a popup ;-)
(issue imported from #M8731)
#2 Updated by Jonas Felix about 11 years ago
Imagine you have a IRRE field, and you wan't to add an existing record which has to relate to your current record.
I just don't understand why there is just an add button and not also a 'select existing record' folder icon...
IRRE is a great improvement for TYPO3 and I would like to use it in more extensions, but this is something I would need for a lot of relations.
Imagine you have a training and you wan to add tt_address records (with a clean separate mm table) to this training. But you wan't to use the cool IRRE interface. But you have the tt_address record and you wan't to edit the tt_address record like other IRRE records.
I think the IRRE interface could be used for much more relations as it is now. It should be possible to change nearly every relation to a IRRE field.
Imagine tt_news -> you could directly edit the selected tt_news category within the news.
Or imagine comments, you could edit the comments directly within the news element, or shop product or wherever you have comments.
I would like to do this improvement, but I just don't know where to start. It should be discussed, because it extends the IRRE concept. And I think that's a little bit why you don't understand me. I wanna use IRRE for something which IRRE is not maid for, but it has the capabilities and needs just some small improvements.
Another example. Imagine you have a typical Hotel/Offer example (like in you example data) and now you wan't to move the offer to another hotel by selecting it in the IRRE field of the other hotel.
#3 Updated by Sonja Schubert about 11 years ago
That would be realy cool. This way you could use the IRRE feature for a lot more relations than it is used now.
You could in example list all be_groups within the be_user within a IRRE field, so you could click right on the group and edit it.
Even better you could directly list all users which belong to a be_group within the group record.
#4 Updated by Fabien Udriot over 9 years ago
Any news about this issue? I am facing the same problem. On one hand, I have a person (addresses), on the other hand I have a fe_user that I would like to link.
Is there some configuration to add in order to be able to select an existing fe_user within addresses.
Here is the TCA:
'fe_user' => Array (
'label' => '...'
'config' => Array (
'type' => 'inline',
'foreign_table' => 'fe_users',
'foreign_field' => 'person',
'foreign_label' => 'username',
'maxitems' => 1,
#5 Updated by Thomas Deinhamer about 9 years ago
Ehm, not sure what you need exactly, but maybe haveing a look here will help you:
Notice the option "foreign_selector", it will render a list of all available records, so you can choose from.
#6 Updated by Daniel Brün almost 9 years ago
I think there still is no decent way to do this. I'll try to further explain the problem:
There are two tables: Cars and Engines. Usually there a couple of engines that are used in many cars. Every car can have only one engine, an engine can be part of many different cars. It would make sense to put the ID of an engine into the cars-table.
When creating a new car in the database it is easy to display a list of existing engines in a select-box, simply by setting type=select for the appropriate field in the cars table.
Problem: Whenever the user tries to input a brand new car with a brand new engine he can not do it in a single form, because he can only select an existing engine and not create a new one on the spot.
It looks like this feature is only available when using a MM-relation between cars and engines ... which makes no sense at all.
#7 Updated by Thomas Deinhamer almost 9 years ago
I guess you're refering to some kind of IRRE for a single record only.
Actually that's what I'd like to have also - an interface like IRRE, but for
defining a single relation only.
But you can use the "add" wizard to create new records "on the fly".
See here: http://typo3.org/documentation/document-library/core-documentation/doc_core_api/4.3.0/view/4/2/#id2524566
Not perfect, but working. The same is used for creating filemounts in TYPO3.