Site Config

Content Management

These Dijon Platform site configuration methods allow you to manage how Dijon Platform handles content management with the Campaign Editor.

setImageRatios

Set which image ratios are availabile in the image uploading cropper.

This is what is available by default:

The default

$config->setImageRatios([
    '1.8' => 'Standard Hero Image'
]);

And here is an example of the different image ratios.

Example

$config->setImageRatios([
    '1.8' => 'Standard Hero Image',
    '1' => 'Background image
]);

The different ratios will be offered as an option in the image upload screen.

setSuccessTemplates

Set which templates are availabile as success templates (e.g. Thank you pages).

Example

$config->setSuccessTemplates([
    'thank_you'
]);

On this page