CMTV
Well-known member
I have a simple
What I have done:
The problem is that these params are not importing when installing my addon on test forum.
What am I doing wrong? Do I need to perform additional steps when installing/upgrading addon? I am really new to this part of XenForo addon development...
ParamDefinition entity which is almost the same as WidgetDefinition entity.ParamDefinition has an addon_id column so I need to export, import param definitions just as widget definitions.What I have done:
- Added
XF:DevOutputWritablebehaviour with all necessary checkings in_postDelete()and_postSave() - Created
DevelopmentOutput\ParamDefinitionclass so now it successfully createsjsonfiles in_outputfolder - Created
AddOn\DataType\ParamDefinitionclass which basically is almost a copy ofWidgetDefinitiondata type class - Extended
DataManager'sgetDataTypeClassesmethod so it contains the short name of myParamDefinitionentity
ParamDefinition entities to _data/param_definitions.xml file:
XML:
<?xml version="1.0" encoding="utf-8"?>
<param_definitions>
<param_definition definition_id="text_box" definition_class="\CMTV\CriteriaBuilder\Param\TextBox" icon="fa-font"/>
</param_definitions>
The problem is that these params are not importing when installing my addon on test forum.
What am I doing wrong? Do I need to perform additional steps when installing/upgrading addon? I am really new to this part of XenForo addon development...
Last edited: