XF 2.0 how to make option in widget ?

hemant_bhardwaj

Well-known member
Licensed customer
i was working on widget that show list but now i want to make a limit to list so
my question is show to make option in widget. I saw it in some of widget.
Example
1535348589542.webp
 
Create a admin template named "widget_def_options_" + definitionID (admin.php?widgets/definitions/)
Here you create your options
See examples e.g. \XF\Widget\NewPosts
 
See the example how it is solved for an XF widget.
See examples e.g. \XF\Widget\NewPosts

Want to change your own widget or an existing one? Ask only, because you have 2 different widgets on the screenshot.
 
i am making my widget of custom addon that i made.
discord_defination is discord_list_feature
and in the first screenshot i created the widget and in the last screenshot i try to show you the html file in admin template that i make
 
Back
Top Bottom