public function updateCMSFields(FieldList $fields)
    {
        $tags = $this->getAllTagsMap();
        $tagField = ListboxField::create('Tags', _t('DMSDocumentTaxonomyExtension.TAGS', 'Tags'))
            ->setMultiple(true)
            ->setSource($tags);

        if (empty($tags)) {
            $tagField->setAttribute('data-placeholder', _t('DMSDocumentTaxonomyExtension.NOTAGS', 'No tags found'));
        }

        $fields->insertAfter('Description', $tagField);
    }
public function updateCMSFields(FieldList $fields)
    {
        $tags = $this->getAllTagsMap();
        $tagField = ListboxField::create('Tags', _t('DMSDocumentTaxonomyExtension.TAGS', 'Tags'))
            ->setMultiple(true)
            ->setSource($tags);

        if (empty($tags)) {
            $tagField->setAttribute('data-placeholder', _t('DMSDocumentTaxonomyExtension.NOTAGS', 'No tags found'));
        }

        $fields->insertAfter('Description', $tagField);
    }
public function updateCMSFields ( FieldList $ fields ) { $ tags = $ this -> getAllTagsMap ( ) ; $ tagField = ListboxField :: create ( 'Tags' , _t ( 'DMSDocumentTaxonomyExtension.TAGS' , 'Tags' ) ) -> setMultiple ( true ) -> setSource ( $ tags ) ; if ( empty ( $ tags ) ) { $ tagField -> setAttribute ( 'data-placeholder' , _t ( 'DMSDocumentTaxonomyExtension.NOTAGS' , 'No tags found' ) ) ; } $ fields -> insertAfter ( 'Description' , $ tagField ) ; }
Push an autocomplete dropdown for the available tags in documents

@param FieldList $fields
Push an autocomplete dropdown for the available tags in documents