Plugin.php options

Third party plugins, patches, bugfixes
Post Reply
kamaldua
Newbie
Posts: 17
Joined: Mon Jan 17, 2022 5:17 am

Plugin.php options

Post by kamaldua »

is there a way to put logic and other information in plugin.php file while creating for example when user is inputting settings for plugins I want to have a dropdown and depending on choice from drop down more dependent fields to be shown.

Example:
Is your VC Server is Secure ( jwt token) : Dropdown with Y/N
depending on what user choses want to show additional fields.
kamaldua
Newbie
Posts: 17
Joined: Mon Jan 17, 2022 5:17 am

Re: Plugin.php options

Post by kamaldua »

I think since it is PHp file, I can try with mixed html and PHP.
alfa24
Senior Boarder
Posts: 1985
Joined: Fri Nov 24, 2017 8:45 am

Re: Plugin.php options

Post by alfa24 »

Please explain. Nearly unintelligible.
Per supporto GRATUITO contattatemi in privato qui
kamaldua
Newbie
Posts: 17
Joined: Mon Jan 17, 2022 5:17 am

Re: Plugin.php options

Post by kamaldua »

What I mean is in Plugin.php file we can specify like following line which automatically creates a textbox for setting for Plugin and adds to database.
parent::addSetting('MypluginField','string',255,'defaultvalue');
What other options are available ? eg if I want users to select a value from dropdown or user to upload a file which will be placed in plugin folder?
alfa24
Senior Boarder
Posts: 1985
Joined: Fri Nov 24, 2017 8:45 am

Re: Plugin.php options

Post by alfa24 »

Ok, i think I caught you.
Unfortunately there is no field setting type reference. I'm sure you can use string, int, enum.
If you need further assistance, you can contact me in private.
Per supporto GRATUITO contattatemi in privato qui
Post Reply