[TYPO3-core] RFC: MM_foreign_select

Franz Holzinger franz at fholzinger.com
Wed Mar 8 18:25:02 CET 2006


Hello René,

>>>$res = $GLOBALS['TYPO3_DB']->exec_SELECTquery('*', $tableName, $where,
>>>'', 'sorting');
>>>      
>>>
>>The Sorting field should be taken from the TCA of the mm table.
>>    
>>
>
>A MM table have no TCA and sorting is just a needed field for MM tables.
>  
>
However this should be extended.

See Kasper's post to the developer list "bidirectional mm relation via TCA".
And I would need this too for a new extension dealing addresses.

>  
>
>>>function writeMM($tableName, $uid, $prependTableName=0)
>>>      
>>>
>>Please add here the parameter $pid at the end. It is needed to make the
>>mm table editable in the backend.
>>    
>>
This would be needed. (see above)

>>>+                $insertFields['sorting'] = $c;
>>>      
>>>
>>Add the line
>>                if ($pid)    {
>>                    $insertFields['pid'] = $pid;
>>                }
>>    
>>
>
>??? There's no pid at all
>  
>
This shall come in the future. Just because you are editing with this
function now, please put this in.


Greets,

Franz












More information about the TYPO3-team-core mailing list