承接 burnbright/silverstripe-listeditor 相关项目开发

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

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

burnbright/silverstripe-listeditor

最新稳定版本:1.0.2

Composer 安装命令:

composer require burnbright/silverstripe-listeditor

包简介

Front-end DataList create/edit/delete control.

README 文档

README

A light-weight front-end control for adding, editing, and deleting DataObjects in a given DataList.

Usage

Update your DataObject as follows:

  • Implement/extend the getFrontEndFields method to control form fields.
  • Implement/extend the canCreate, canEdit, and canDelete functions to control access. see docs.

Add the ListEditForm inside your controller class:

<?php
function Form(){
    return new ListEditForm($this, 'Form', Member::currentUser()->Links());
}
?>

Customising the template

You can make the editor template the same for a specific DataObject by adding a template named: MyDataObject_ListEditField.ss to your project.

You could also edit on a per-instance basis by using the ListEditField's setTemplate function.

Troubleshooting

Add CRUD functions to your DataObject

Make sure you implement the canCreate and canEdit and canDelete functions on your dataobject.

Add/edit form redirects back without saving any changes

You may have fields added that are failing validation. All fields are required by default in the ListEditForm.

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: Unknown
  • 更新时间: 2014-10-28

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固