1、Creation and development of a custom Ibexa DXP field typePawe PawlikAbout mehttps:/ PawlikProduct Support EngineerWith the Company since 2023After work:video games,train with my dog,playing ukuleleAgendaTheoretical introductionFields and field typesType classValue object classFormTemplatesExample ca
2、seCreate custom generic field typeDefine value objectDefine field typeCreate a formIntroduce a templateImplement settingsAdd basic validationFields and field typesField type containsType classValue object classTitle 1Title 2Title 3Field NameTitleAuthorGenreISBNBookContent TypeField TypeText lineAuth
3、orsSelectionISBNBook:The Three MusketeersTitleThe Three MusketeersAlexandre DumasAuthorHistorical novelBodyISBN098-765-4321Title 1Book:HamletTitleHamletWilliam ShakespeareAuthorTragedyBodyISBN123-456-7889Content itemsValue object classContains only the basic logic of a field typePrivate properties,u
4、sed to store the actual dataRepresent an instance of the field type within a content itemMust implement IbexaContractsCoreFieldTypeValue(“value interface”)Contains the logic of the field type:Field type identifierSettings schemaValidating dataTransforming data for formsMust implement IbexaContractsC
5、oreFieldTypeFieldType (field type interface)Type classTemplatesDefine a template containing a block for the fieldBlock can receive the following variablesfieldcontentInfoversionInfofieldSettingsparametersattrForm TypeBuilding formUsed by mapperFormValue Object classForm Type classTemplateFormRecapEx
6、ample caseCustom generic field typeAbstract implementation of field types holding structured dataUse it as a base for custom field typesDefine value objectPrivate properties,used to store the actual dataAn implementation of the _toString()m