[TYPO3-core] RFC: MM_foreign_select

Holzinger Franz franz at fholzinger.com
Wed Jan 25 21:16:14 CET 2006


Hello René,

>  
>
>>>'MM_ident' defines what value should be written to the "ident" field of
>>>the MM table. This is usually the name of the current field.
>>>      
>>>
>>I think this one is only needed for DAM and nowhere else. So I suggest
>>you create a hook function for this. This would be helpful to others who
>>want to implement other functionalities with mm tables.
>>    
>>
>
>My view:
>- I don't see how to implement that as a hook.
>- There are people wanting this too
>- Kasper introduced a refrences table (for different functionality) which uses 
>also this kind of field to reference to a field of a table
>
>Therefore I think that is a must have feature.
>
>  
>
.g. in t3lib_loaddbgroup.php you could use $where as a parameter of the
functions instead of $ident. So many others things could be done then.

>  
>
>>>$tcaFieldConf['MM_foreign_select'] = $tcaFieldConf['MM_foreign_select'] ?
>>>$table : false;
>>>      
>>>
>>I think that the $TCA should not be overwritten anywhere, even if it is
>>a local copy.
>>The $TCA part $tcaFieldConf should have been passed as a reference
>>parameter in this function call.
>>
>>    
>>
>>>$dbAnalysis->writeMM($tcaFieldConf['MM'], $id, $prep,
>>>$tcaFieldConf['MM_ident'], $tcaFieldConf['MM_foreign_select']);
>>>      
>>>
>>Please change the order of parameters so that the $tca... are one after
>>the other.
>>$id should be the first parameter.
>>    
>>
>
>This is already a fixed API that can't be changed, sorry.
>But when not using MM_foreign_select that have to be changed anyway.
>  
>
should be changed when the API gets changed.

>
>  
>
>>Another thing:
>>I would like to have the $pid as a column in mm tables in order to make
>>them usable for the TCE. If you change the methods now: What about
>>adding the $pid as a parameter as well?
>>E.g.
>>    
>>
>
>Please explain.
>The references tables have already a pid, what is the sense of having a pid in 
>MM tables?
>  
>
See Kasper's todays post to

[TYPO3-dev] bidirectional mm relation via TCA

>  
>
>>Here and somewhere else, as mentioned above, I would like to have the
>>hook function, so anybody can extend this to his needs. Instead of
>>$ident as a parameter use $additionalArr which will be passed to the
>>hook functions together with $insertFields.
>>    
>>
>
>I'll have a look, but I'm still unsure if this is easily possible.
>
>
>  
>
You will manage this.


Regards,

Franz









More information about the TYPO3-team-core mailing list