Login / Status
developer.Resource
Home . Documentation . Document Library . Extension Manuals
Sponsors
hosted by punkt.deTYPO3 and Open Source Magazine

1.3. Configuration

“Type” selector box configuration

There are 3 types hardcoded in “Type” selector box:

You can add new types with user or group typoscript. If you set the “Add default evaluation types” by installation this tsConfig code is added to default user tsConfig code:

formEvalWizard{

alphabet{

ereg=^[a-zA-Z]*$

name=Alphabet

}

number{

ereg=^[0-9]*$

name=Number

}

}

and you become this:

On this tsConfig code you can see how to extend evaluation types:

formEvalWizard{

somestring{

ereg=regular expression

name=name to show in selector box

}

}

e.g. if you want to add birthdate you can do it with this tsConfig code:

formEvalWizard{

birthdate{

ereg=^[0-9]{2}\.[ ]+[0-9]{2}\.[ ]+[0-9]{4}

name=Date of birth

}

}

and you become this:

If you want to delete type from selector box, you can do it with this tsConfig code:

formEvalWizard{

typetodelete{

delete=1

}

}

e.g. if you want to delete the default alphabet type you can do it with this tsConfing code:

formEvalWizard{

alphabet{

delete=1

}

}

“Ereg” field configuration

If you don't want to disturb user with “Ereg” field – can you configure all needed types in “Type” selector box and you can hide the “Ereg” field with this tsConfig code:

formEvalWizard.hideEreg=1

Then you will become this: