[TYPO3-english] override with empty values

Arno Dudek webmaster at adgrafik.at
Mon Apr 23 13:49:51 CEST 2012


Hi List!

I've here a tricky problem and hope someone have an answer.

I use powermail with multipage and dbEntry. For the fields I use the 
type typoscript to create an userdefined field.

If the form filled out and go to the next page the values are written to 
the session.

When I go back, than the values of the session should be taken and not 
the one of the database.

For this I use a register variable for the property checked:

day1checked.noTrimWrap = | checked="checked"||
day1checked.if.isTrue.field = db_field
day1checked.if.isTrue.override.data = TSFE: 
fe_user|sesData|powermail_8774|uid1|0

day2checked.noTrimWrap = | checked="checked"||
day2checked.if.isTrue.field = db_field
day2checked.if.isTrue.override.data = TSFE: 
fe_user|sesData|powermail_8774|uid1|1

But in this case, if fe_user|sesData|powermail_8774|uid1|1 have not 
selected, the value of db_field is taken. But it should be empty, like 
the value of fe_user|sesData|powermail_8774|uid1|1

I tried to use fe_user|sesData|powermail_8774|uid1 or 
fe_user|sesData|powermail_8774 to know if the session variable was set 
already, but this returns an empty value and not "Array" or something else.

I hope it is clear what I mean.

lg arno


More information about the TYPO3-english mailing list