I am writing a Typo3 extension with custom content elements using Flexforms. All is working fine. I just would like to add a value to "header" inside of tt_content just like the standard Typo3 content elements do. That way, if I create a translation, the default header of the translated content should show as "My headline (copy 1)" and not just as "(copy 1)". Also, the header should show up if I try and add an anchor link to the element.
For example, my flexform starts like this:
<T3DataStructure>
<sheets>
<sGeneral>
<ROOT>
<TCEforms>
<sheetTitle>My Element</sheetTitle>
</TCEforms>
<type>array</type>
<el>
<headline>
<TCEforms>
<label>Text</label>
<config>
<type>input</type>
</config>
</TCEforms>
</headline>
...
I access above headline value in my HTML template like this: {flexform.sGeneral.headline}
That works well. How can I accomplish that this value also gets written to tt_content header?
I really appreciate your help.