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:DevOutputWritable
behaviour with all necessary checkings in_postDelete()
and_postSave()
- Created
DevelopmentOutput\ParamDefinition
class so now it successfully createsjson
files in_output
folder - Created
AddOn\DataType\ParamDefinition
class which basically is almost a copy ofWidgetDefinition
data type class - Extended
DataManager
'sgetDataTypeClasses
method so it contains the short name of myParamDefinition
entity
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: