Jake Vanderwerf
2025-09-30 f7397ee5a65f0987024d888127c633f4a43c43c5
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
<?php
// /content/strategy.php
function ajv_strategy():array
{
    return [
        'singular'       => 'Strategy',
        'plural'       => 'Strategies',
        'hide_single'  => false,
        'redirectToAuthor'=> false,
        'show_feed'    => true,
        'favouritable' => true,
        'karma'        => false,
        'icon'         => 'brain',
        'rewrite'      => [
            'slug'       => 'strategy',
            'with_front' => false,
        ],
        'fields'       => [
            'post_title'     => [
                'type'  => 'text',
                'label' => 'Title',
            ],
            'featured_image' => [
                'type'  => 'image',
                'label' => 'Image',
            ],
            'gallery'        => [
                'type'  => 'gallery',
                'label' => 'Gallery',
            ],
            'price'          => [
                'type'  => 'number',
                'label' => 'Price',
            ],
            'post_content'   => [
                'type'  => 'textarea',
                'quill' => true,
                'label' => 'Notes'
            ]
        ],
        'single_image' => false,
        'upload_title' => 'Upload Artwork',
    ];
}