[TYPO3-irre] using a recordselector
Oliver Hader
oh at inpublica.de
Sat Jul 28 13:22:43 CEST 2007
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/
More information about the TYPO3-project-irre
mailing list