Unchangeable settings in plug-in

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
5 years ago
I've developed a plug-in that contains few settings, the plug-in is working perfectly but I'm wondering if I can make one of the settings as read-only.

So the user will not be able to change the value of that field from settings>>allsettings option in the Admin panel, the value of that option will be changed automatically ONLY by the plug-in itself. Thank you.
5 years ago
HI HatemHusam,

Yes it can possible

there is 2 ways to do that ,

1. Can create your plugin setting table to store all setting data .
2. you have to override the setting service and make a condition that any of your plugin setting data is exist so, you can hide or skip the data to display in all setting in your plugin .

from this 2 ways you can manage your queries

Hope it can helpful to you

Thanks
5 years ago
ilyaspatel wrote:
HI HatemHusam,

Yes it can possible

there is 2 ways to do that ,

1. Can create your plugin setting table to store all setting data .
2. you have to override the setting service and make a condition that any of your plugin setting data is exist so, you can hide or skip the data to display in all setting in your plugin .

from this 2 ways you can manage your queries

Hope it can helpful to you

Thanks


One another way if you have not override the setting service, you have to create ActionFilter and make a condition for that any of your plugin setting data is exist.
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.