Changing the Field Configuration¶
At the Extension Level¶
The configuration of any field can be changed at the extension level by TypoScript. The syntax is the following:
plugin.tx_yourExtensionNameWithoutUnderscores_pi1.formName.viewType.fields[.tableName].fieldName.fieldProperty = propertyValue
For example, assume that one wants to change the width and the height
of the image in the List view in the Tutorial1.
The
tx_yourExtensionNameWithoutUnderscores_pi1istx_savlibraryexample1_pi1,the
formNameisContact,the
viewTypeislistView(usesingleView,editViewfor the other types),the
tableNameis the table in which the fieldfieldNameis. It can be omitted if the field is in the main table.the
fieldNameisimage,the
fieldPropertyiswidthorheight.
It leads to the following configuration:
plugin.tx_savlibraryexample1_pi1.Contact.listView.fields.image.width = 200
plugin.tx_savlibraryexample1_pi1.Contact.listView.fields.image.height = 200
Important
Do not forget to add _pi1 to the extension name.
At the Page Level¶
The configuration of any field can be changed at the extension level by means of the page TypoScript Config. The syntax is the following:
tx_yourExtensionNameWithoutUnderscores.formName.viewType.fields[.tableName].fieldName.fieldProperty = propertyValue
Using the same example as above, it leads to:
tx_savlibraryexample1.Contact.listView.fields.image.width = 200
tx_savlibraryexample1.Contact.listView.fields.image.height = 200
Important
Do not add _pi1 to the extension name.