2015-10-10, 03:40:28
(2015-10-09, 21:29:44)gslexx Wrote: I mean that if you do a site to order - the customer does not need to import / export or edit the settings! Customer only need to change the data in in custom fields.
You make a very valid point, but I don't agree completely that they do not need import/ export.
The end-user should be able to export for manual backup and re-import purposes, to import new settings for extra customization, but should not be able to change the designer/developer's (theme and/or plugin) settings.
This is already working because theme and plugin settings are not editable.
For clarification, if you are the designer/ developer, you're meant to use a theme type of tab (because this prohibits editing access). You can still build your settings in GS, and when you're ready 'Export as: Theme'. Read more about it in the tutorial. If over that, you don't want to allow your clients to add new tabs and settings, you can disable editing permission altogether, have a look at Restricting editing permission.
However you did help me identify a 'bug' (thanks): currently importing plugin/ theme settings will 'bypass the editing permission' because I didn't adapt that in the import function.That means building in an extra switch to prohibit overwriting anything but the value of the setting, when its type is a plugin or a theme (currently it completely overwrites the setting).
Thanks I'm going to go with that.