Extensions Field Type Extension Estimated reading: 3 minutes General Field type extensions can be used to override field types with a custom functionality.In this case, it is in principle no matter which field type is used, unless one wants to build on the basic properties of the field type.Field Type Extensions are created with the help of functions in the file extensions → ext_type.inc. The functions for creating a field type extensions are always named according to the same principle (see above). The function is always named lmbd_NameOfTheFieldTypeExtension or lmbd_NameOfTheFieldTypeExtension, in which lmbd stands for Detail and lmbc stands for List. Example: <?php function lmbd_extendedTestHallo($ID,&$gresult,$fieldid,$gtabid,$class,$style,$pos,$typ $z_index=null,$event=null,$gformid=null,$formid=null) { echo "test_detail"; } function lmbc_extendedTestHallo($bzm,$field_id,$gtabid,$typ,&$gresult,$event=null) { echo "test_liste"; } function lmbu_extendedTestHallo($gtab_id,$field_id,$ID,&$change_value) { global $gfield; $change_value = parse_db_string($change_value,$gfield[$gtab_id]["size"][$field_id]); $sqlquery = $fieldname." = '".$change_value."'"; $sqlquery = str_replace(array("\n", "\r"),"",$sqlquery); return $sqlquery; } ?> Integration of a Field Type Extension Once a field type extension has been created in the ext_type.inc file, it can now be applied to a field type. For this purpose, a new field type can be created or an existing field type can be used. Then the created field type extension can be selected in the extension column. After the field type extension has been applied to a field type, the current session must be reset by clicking on the reset button in order to make the changes visible. In the following example, a field type extension is used to implement a button into a table and form, in this case to link to a website. Example: <?php function lmbd_extendedEditButton($bzm,$field_id,$gtabid,$typ,&$gresult,$event=null) { echo ' <div class="lmbMenuItemTop2Icon"> <a target="new" href="http://limbas.de" class="lmb-icon lmb-info-circle-alt2"></a> </div> '; } function lmbc_extendedEditButton($bzm,$field_id,$gtabid,$typ,&$gresult,$event=null) { echo ' <div class="lmbMenuItemTop2Icon"> <a target="new" href="http://limbas.de" class="lmb-icon lmb-info-circle-alt2"></a> </div> '; } ?> Note: The graphics in selection, ajax links and ajax query-results are depicted by the list function extension lmbc_. If the extension is not available, the pure field type is rendered. A new field called “TestButton” was then created for demonstration purposes and the associated field type extension “extendedEditButton” was assigned. After a reset, the created button can now be found in the table. By clicking on the icon you will be redirected to the website in a new tab.