[TYPO3-irre] using a recordselector

Steffen Kamper steffen at sk-typo3.de
Sat Jul 28 14:19:02 CEST 2007


Hi Oliver,

"Oliver Hader" <oh at inpublica.de> schrieb im Newsbeitrag 
news:mailman.1.1185621759.30575.typo3-project-irre at lists.netfielders.de...
> Hi Steffen,
>
> Steffen Kamper schrieb:
>> now i digged in the code, and i tried this in function
>> renderPossibleRecordsSelector
>>
>> if ($selConfig['type'] == 'select') {
>>    $item = $this->renderPossibleRecordsSelectorTypeSelect($selItems, 
>> $conf,
>> $selConfig['PA'], $uniqueIds);
>>   } elseif ($selConfig['type'] == 'groupdb') {
>>    $item = $this->renderPossibleRecordsSelectorTypeGroupDB($conf,
>> $selConfig['PA']);
>>   } else {
>>             $item = 
>> $this->renderPossibleRecordsSelectorTypeGroupDB($conf,
>> $selConfig['PA']);
>> }
>>
>> and i get a elementbrowser with all my needs.
>>
>> I know this is quick and dirty, but only by looking to this code i saw 
>> that
>> normally i only get a record selector, if the foreign_selector has type
>> select or dbgroup, but i have other types.
>>
>> So maybe this helps to enable element browser for normal types.
>
> On the parent level, you define where to store the relations (m:n). The
> foreign_selector property points to a field on the child table and here
> again the information is required, which record should be related.
>
> I'm interested in what other/normal types you use and how the selection
> should be created. For the purpose of reusing records in relationships
> this isn't a 1:n constellation anymore, but a m:n thingy that always
> requires an intermediat table.
>
> But, I'm open for new ideas and suggestions on that... ;-)
>
>
> olly
> -- 
> Oliver Hader
> http://inpublica.de/

I see that problem and i'm testing to find a way to relate the childs this 
way. Because childs are saved as commalist of uid's, this should be 
possible.
If i get it to work i show you the way i did.
I think this is useful in many cases, 1:n is a relation type that is used 
very often.

vg  Steffen 




More information about the TYPO3-project-irre mailing list