Jump to content

FieldtypeFile, FieldtypeMulti, FieltypeImage - useTags option doesn't create tag column for field


gornycreative
 Share

Recommended Posts

I tried turning on tags for an image field using the following config:

                'detailed_images' => [
                    'label' => 'Detailed Images',
                    'flags' => 0,
                    'type' => 'FieldtypeImage',
                    'icon' => 'picture-o',
                    'fileSchema' => 271,
                    'maxFiles' => 0,
                    'textformatters' => [
                        0 => 'TextformatterEntities',
                    ],
                    'extensions' => 'gif jpg jpeg png',
                    'outputFormat' => 0,
                    'descriptionRows' => 5,
                    'useTags' => 1,
                    'gridMode' => 'left',
                    'focusMode' => 'zoom',
                    'clientQuality' => 90,
                    'inputfieldClass' => 'InputfieldImage',
                    'unzip' => 1,
                    'tags' => 'content_components',
                    'collapsed' => 0,
                    'columnWidth' => 100,
                ],

But when I try to edit a page that has the field in the template I get a SQL error:

'field_detailed_image.tags' column not found in 'field_list'.

I tried looking deeper into the methods and thought perhaps calling getDatabaseSchema would call the private updateDatabaseSchema but it seems like that doesn't work.

I have turned off useTags in the meantime but I'm guessing this affects any fieldtype that extends fieldtypeFile.

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

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...