linawolf/form-autocomplete 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

linawolf/form-autocomplete

Composer 安装命令:

composer require linawolf/form-autocomplete

包简介

Offers the option to configure autocomplete properties for fields in the form backend editor.

README 文档

README

Autocomplete properties for typo3/cms-form for TYPO3 v11.5 and v12.4. Is included in the TYPO3 Core starting with TYPO3 13.0, see Feature https://review.typo3.org/c/Packages/TYPO3.CMS/+/79208

Autocomplete

The :guilabel:`Autocomplete` select in the form editor can be used to define :html:`autocomplete` properties for input fields. This extension predefines the most common of the input purposes that are widely recognized by assistive technologies and recommended by the W3C. The HTML standard allows arbitrary values.

If you need to provide additional fields, you can reconfigure the autocomplete field with additional select options:

Add Autocomplete options to the backend editor

Extend the EXT:form configuration:

EXT:my_sitepackage/Configuration/TypoScript/setup.typoscript:

plugin.tx_form {
  settings {
    yamlConfigurations {
      # register your own additional configuration
      # choose a number higher than 10 (10 is reserved)
      100 = EXT:my_sitepackage/Configuration/Form/CustomFormSetup.yaml
    }
  }
}

Redefine the backend input in the extended YAML:

EXT:my_sitepackage/Configuration/Form/CustomFormSetup.yaml:

prototypes:
  standard:
    formElementsDefinition:
      Text:
        formEditor:
          editors:
            600:
              # Choose an index that is not in use yet
              12345:
                value: 'cc-name'
                label: 'cc-name - Full name as given on the payment instrument'

统计信息

  • 总下载量: 126
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 1
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 1
  • Watchers: 1
  • Forks: 1
  • 开发语言: PHP

其他信息

  • 授权协议: GPL-3.0-or-later
  • 更新时间: 2023-06-21