定制 rfuehricht/formhandler-ajax 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

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

rfuehricht/formhandler-ajax

最新稳定版本:13.0.1

Composer 安装命令:

composer require rfuehricht/formhandler-ajax

包简介

Add AJAX capability to Formhandler. File upload, validation, submit.

README 文档

README

Add AJAX capability to Formhandler. File upload, validation, submit.

Usage

Use Formhandler AJAX viewhelper to render your form. This will automatically enable AJAX file upload. To enable AJAX submit of the form set option ajaxSubmit = 1 in your form's TypoScript setup.

Furthermore, a new ViewHelper for an AJAX based file removal button is added.

<html
    data-namespace-typo3-fluid="true"
    lang="en"
    xmlns:f="http://typo3.org/ns/fluid/ViewHelpers"
    xmlns:fh="http://typo3.org/ns/Rfuehricht/Formhandler/ViewHelpers"
    xmlns:fhajax="http://typo3.org/ns/Rfuehricht/FormhandlerAjax/ViewHelpers"
    xmlns:hcaptcha="http://typo3.org/ns/Waldhacker/Hcaptcha/ViewHelpers"
>

<fhajax:form enctype="multipart/form-data">
    ...
    <f:if condition="{files.file -> f:count()} > 0">
        <ul>
            <f:for as="file" each="{files.file}" key="index">
                <li><div>{file.name} ({file.size -> f:format.bytes()})
                    <fhajax:fileRemoveButton file="{file}" removeElement="li" value="X" />
                </div></li>
            </f:for>
        </ul>
    </f:if>
    ...
</fhajax:form>

</html>

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: GPL-3.0-or-later
  • 更新时间: 2025-07-03