Jump to content

Settings Factory


Macrura

Recommended Posts

On 10/5/2020 at 8:26 AM, gmclelland said:

@gornycreative - If you are using Cloudflare - you may want to set some rules as seen here:

 

That's good. I was early on with cloudflare and have only recently gotten back into it to see how incredible their platform has grown to.

I had a pull the levers push the buttons fire drill prior to core updates but it looks like this may help that situation a lot! Thanks.

Link to comment
Share on other sites

  • 7 months later...

There should be examples of fieldsets defined in the samples folder, but using PHP. I don't think you can do fieldsets fro JSON defined settings, but the tabs fieldsets example shows "Advanced Settings" which are each in a fieldset.

sf-_tabs_fieldsets.thumb.jpg.c6ba20ebc22ff29c936b4eaf528251c0.jpg

  • Like 1
  • Thanks 1
Link to comment
Share on other sites

  • 1 month later...
  • 2 months later...
  • 1 month later...
  • 6 months later...

@Clarity

Can you post the contents of your PHP file?
Are you using any namespace?
What version of ProcessWire are you on?

There is an example settings file in the module, you can copy to your templates folder somewhere and then specify that file for the settings. If that file doesn't work, then something must have changed in the core. It works for me under PW 3.0.178.

Link to comment
Share on other sites

Thank you! Finally, I found the root of the problem. I didn't add "return $inputfields;" to the end of file.
 
I'm not using a namespace explicitly. ProcessWire version is 3.0.199 dev, and everything works fine now.
  • Like 1
Link to comment
Share on other sites

53 minutes ago, Clarity said:
Thank you! Finally, I found the root of the problem. I didn't add "return $inputfields;" to the end of file.
I'm not using a namespace explicitly. ProcessWire version is 3.0.199 dev, and everything works fine now.

awesome! Thanks for using the module - hope it helps and is useful!

  • Like 1
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...