(2015-05-23, 08:48:21)datiswous Wrote: Tried this just now, but all previous settings made with v0.3 are gone and default 2 tabs active:
In combination with GSconfig UI there's more weird stuff...
Edit: It seems to work now. Maybe best to flush cache after update?
Yeah I had a similar issue & was surprised after so many succesful tests. Solved it by simply reloading the page, I'll have to add that to the install description. Thanks for reminding me
Btw:
(2015-05-23, 08:48:21)datiswous Wrote: Some idea: Setting an image for a setting state. So if you activate a certain setting (for example background color or css file) you see this change in example image (could be a screenshot of the site, or a screenshot of a font, or something). This way you could make a more visual orientated setting panel.
If you now use the hooks
custom-settings-render-top
or custom-settings-render-bottom
, and include a <script>
tag, you can use the JS function addHook(yourfunction)
. In this function you can attach events & use GSCS.returnSetting(tab, setting).value.subscribe(function(value) { .. })
, which will execute the function everytime the setting's value
changes. Values to check against are the same as the ones returned by the PHP API.