[Typo3-dev] eval = 'uniqueInPid' for type = select in TCA

JoH info at cybercraft.de
Thu Jun 30 15:07:37 CEST 2005


Hi list.

Is there any possibility to get something like eval = 'uniqueInPid' for a
selectbox in the BE?

We added a special field to the pages table that describes the type of
records a sysfolder contains.
Using this field we can decide which pid the record should get when inserted
into it's table by a Java based application.
The problem is, we have to make sure that the record type of a sysfolder
will be unique in the branch of this sysfolder.

The structure will be:

parent page
    |_ sysfolder containing type 1 records
    |_ sysfolder containing type 2 records
    |_ sysfolder containing type 3 records
    |_ sysfolder containing type 4 records

Something like this should be not possible:

parent page
    |_ sysfolder containing type 1 records
    |_ sysfolder containing type 2 records
    |_ sysfolder containing type 3 records
    |_ sysfolder containing type 1 records
    |_ sysfolder containing type 4 records

by default there is no "eval" function for select fields.
So I need a solution for one of two possible options:
1. Add the eval function for select fields
2. Use existing functions to achieve the same

Any hint?

Joey

-- 
Wenn man keine Ahnung hat: Einfach mal Fresse halten!
(If you have no clues: simply shut your knob sometimes!)
Dieter Nuhr, German comedian
openBC: http://www.openbc.com/go/invuid/Jo_Hasenau






More information about the TYPO3-dev mailing list