Jump to content

Image variation creation


nabo
 Share

Recommended Posts

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!

Link to comment
Share on other sites

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.

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
 Share

×
×
  • Create New...