承接 wwwision/form-multicolumnsection 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

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

wwwision/form-multicolumnsection

Composer 安装命令:

composer require wwwision/form-multicolumnsection

包简介

Flow package with a custom Flow Form Framework Form Element that renders Multi columns

README 文档

README

This package adds a new Form Element Wwwision.Form.MultiColumnSection:TwoColumns to the default preset that allows to render Multi-Column sections within Forms of the Flow Form Framework.

It includes:

  • Form Framework Element definition in Settings.yaml, including the corresponding custom PHP implementation
  • The Fusion & Node Type definition required to make this work with the neos/form-builder
  • A Fluid template that will be used when rendering the form with the default FluidFormRenderer
  • A Fusion prototype that will be used when rendering the form with the neos/form-fusionrenderer

Usage

Install this package using GIT:

git clone https://github.com/bwaidelich/Wwwision.Form.MultiColumnSection.git Packages/Application/Wwwision.Form.MultiColumnSection

And make sure to rescan the installed packages so that it is properly installed:

./flow flow:package:rescan

Note: This package requires the neos/form package in version 4.0 or higher

Usage in the Neos Form Builder

In the Neos backend there's now a new Content Element type that can be added to node-based Forms:

Create Wizard

When inserted, child elements can be added to the column1Elements or column2Elements FormElementCollections.

Usage from Fusion

This Form Element can also be used from Fusion like this

prototype(Some.Package:SomeForm) < prototype(Neos.Form.Builder:Form) {
    presetName = 'somePreset'
    firstPage {
        elements {
            twoCols = Wwwision.Form.MultiColumnSection:TwoColumns.Definition {
                label = 'Name and Email'
                column1Elements {
                    name = Neos.Form.Builder:SingleLineText.Definition {
                        label = 'Name'
                    }
                }
                column2Elements {
                    email = Neos.Form.Builder:SingleLineText.Definition {
                        label = 'Email'
                        validators {
                            emailAddress = Neos.Form.Builder:EmailAddressValidator.Definition
                        }
                    }
                }
            }
        }
    }
}

Usage in YAML Form definitions

The structure of the YAML Form definition is strict, so it's not allowed to use custom keys like column1Elements. Instead the column assignment is done via a custom renderingOption "_column":

type: 'Neos.Form:Form'
identifier: some-identifier
renderables:
    -
        type: 'Neos.Form:Page'
        identifier: page1
        renderables:
            -
                type: 'Wwwision.Form.MultiColumnSection:TwoColumns'
                identifier: two-columns
                label: 'Two Columns'
                renderables:
                    -
                        type: 'Neos.Form:SingleLineText'
                        identifier: name
                        renderingOptions:
                          _column: 1
                        label: "Name"
                    -
                        type: 'Neos.Form:SingleLineText'
                        identifier: email
                        renderingOptions:
                          _column: 2
                        label: "Email"
                        validators:
                            -
                                identifier: 'Neos.Flow:EmailAddress'

wwwision/form-multicolumnsection 适用场景与选型建议

wwwision/form-multicolumnsection 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 13.86k 次下载、GitHub Stars 达 1, 最近一次更新时间为 2017 年 08 月 29 日, 在 PHP 生态内属于活跃度较高的组件。

我们在过去多个企业项目中使用过 wwwision/form-multicolumnsection 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。

围绕 wwwision/form-multicolumnsection 我们能提供哪些服务?
定制开发 / 二次开发

基于 wwwision/form-multicolumnsection 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。

BUG 修复 & 性能优化

线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。

项目外包 & 长期维护

承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。

yvsm@zunyunkeji.com QQ:316430983 微信:yvsm316 西安尊云信息科技 · 专注 PHP / Go / 分布式系统研发

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2017-08-29