[TYPO3-dev] IRRE question

JoH asenau info at cybercraft.de
Thu Sep 13 00:11:32 CEST 2007


> A question to the IRRE gurus:
>
> Is it possible to define an IRRE relationship to itself? I had the
> idea to extend tt_address with a type field. This field determines if
> a record is a person or an organisation. Each person may have one
> role in an organisation. The roles may either be a free text field or
> a uid of a role table.

You mean IRRE relation from one record to another record of the same table?
Or did you really mean "itself"? ;-)

The first thing is exactly how it is done in the ICE pack.
It's linking tt_content records to other tt_content records which can even
be nested.
The only thing you have to make sure is, that none of the records that are
already selected as a child can be used as parent of their parent and vice
versa. This is just to avoid loops and can easily be done with an
itemsProcFunc setup in ext_tables.php

You can see it in the ICE box, which is using
tx_icebox_tca_mods->remove_from_parents for it.

HTH

Joey

-- 
Wenn man keine Ahnung hat: Einfach mal Fresse halten!
(If you have no clues: simply shut your gob sometimes!)
Dieter Nuhr, German comedian
openBC/Xing: http://www.cybercraft.de
T3 cookbook: http://www.typo3experts.com






More information about the TYPO3-dev mailing list