Jump to content

Recommended Posts

Posted

Hello

I'm working on a project that use PW as backend CMS. PW serves formatted data of each page but the engine simply generates json from pagearray.
I would like to set one or more variations on images, so I think it would be useful if there were a field to set possible variations... even with overrides!

Posted

You could use a Table (or multiplier) field to set this up. And when rendering your JSON output, generate the variations using the Table field data on the page. 

Posted

I'm not sure if field or template level is really what you're after and not rather "site wide" level. If you need settings, which apply to your whole site you can always create a single page, which holds all the setting for the your site. You could even make a custom api variable with it in e.g. `init.php`:

$this->wire('settings', $pages->get("parent=1, template=settings"));

If you don't need the settings to be editable via the admin interface you can also attach your own properties to $config.

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...