Skip to content

Is saving images within the general settings module now possible? #977

Answered by pboivin
adam-jones-net asked this question in Q&A
Discussion options

You must be logged in to vote

Hey @Arkid,

You can totally add medias fields to your settings pages. Here's a quick example :

config/twill.php

return [
    'enabled' => [
        'settings' => true,
    ],

    'settings' => [
        'crops' => [
            'cover' => [
                'desktop' => [
                    [
                        'name' => 'desktop',
                        'ratio' => 16 / 9,
                    ],
                ],
                'tablet' => [
                    [
                        'name' => 'tablet',
                        'ratio' => 4 / 3,
                    ],
                ],
                'mobile' => [
                    [
                        'name' => 'mobil…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@adam-jones-net
Comment options

Answer selected by adam-jones-net
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants