michael.caruana/hasonefield 问题修复 & 功能扩展

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

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

michael.caruana/hasonefield

Composer 安装命令:

composer require michael.caruana/hasonefield

包简介

Easy to manage has_one relations with familiar link/unlink feature.

README 文档

README

Easy to manage has_one relations with familiar link/unlink feature.

Introduction

Adds a Has-One type of field to allow you to create, link, unlink, delete, or edit DataObjects in a has_one relationship. Based on a gridfield, but without the fluff.

  • "Create" button takes you to a new page, and from there the parent is updated with the new relation when the new object is saved.
  • Gridfield-style "Link Existing" field is used to search and select existing objects, and happens inline/ajax.
  • If there already is a relation, clicking on the data or the gridfield-style "Edit" icon take you to the usual edit page.
  • Gridfield-style "Unlink" icon happens inline/ajax and writes the parent only.
  • Gridfield-style "Delete" icon also happens inline/ajax with the "Are you sure" prompt.

Requirements

  • Silverstripe 3x.

Installation

composer install

Manipulations

  • Access the internal gridfield using $gridfield = $field->FieldList()->first();.
  • Set the display fields using $gridfield->setDisplayFields($someArray);.

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2022-05-02

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固