[Typo3] dynaflex : how to add a simple field
Ismael BIDAU
bidau at ensci.com
Tue Oct 4 12:37:45 CEST 2005
Le Tue, 04 Oct 2005 12:23:18 +0200, Thomas Hempel <thomas at work.de> a écrit:
> Hi Ismaël,
>
>> OK. So i explain what I wanted to do : I would like to have a normal
>> input field. For some conditions, I want this field is a flexform. Is
>> it possible or do I have to create a flexform with one input field and
>> modify if necessary ?
>> (Hopefully the first solution)
> It's the same as I explained before. If you want to add a field into the
> TCA there have to be an corresponding field in the DB. Even if you want
> to add a complete flexform.
I understood. I thought about an existing input field that I want to
convert in flexform if necessary.
Make sense ? It's to edit mm table. I have a student
table(tx_etudiant_list), an event table (tx_events_list) and mm table "in
the middle" (tx_events_list_etudiant_mm). Depend of the event type, I have
to put some extra information in a field (tx_events_list_etudiant_mm >
comment).
I put a comment 'Good job' for a LESSON
If the event is a 6 months projet, I have to put many information about
student work.
> I think the easiest way to solve your problem, is to convert your
> current TCA into a flexform. So you can modify it as you want. ;-)
Probably right.
> I could implement some routines that add and drop fields in the DB
> dynamically, but I don't think that this is a nice solution...
>
> So far, it would be nice if tell when you finished your work and tell me
> how it works. ;-)
OK
Ismaël BIDAU
More information about the TYPO3-english
mailing list