briceburg/silverstripe-flexichoice 问题修复 & 功能扩展

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

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

briceburg/silverstripe-flexichoice

最新稳定版本:0.1.0

Composer 安装命令:

composer require briceburg/silverstripe-flexichoice

包简介

SilverStripe field for providing arbitrary text input or selecting from YAML configurable presets.

README 文档

README

SilverStripe field for providing arbitrary text input or selecting from YAML configurable presets.

Requirements

SilverStripe 3+

Screenshots

flexichoice field

(the 'Link Text' field demonstrates a FlexiChoiceField, the 'Link' field is a silverstripe-flexilink field)

Usage

  • Add FlexiChoice field types to your DataObject(s)
class BlockContentHeading extends DataObject {
  private static $db = array(
    'Title'     => 'Varchar',
    'Content'   => 'Text',
    'Link'      => 'FlexiLink',
    'LinkText'  => 'FlexiChoice', // <--- here
  );
  

Trigger the environment builder (/dev/build) after extending objects -- You will now see the FlexiChoiceField appear in the CMS when editing your object.

FlexiChoiceField:
  choices:
    - LEARN MORE
    - READ MORE
    - MORE
    - GET STARTED

You may of course subclass FlexiChoiceField to provide multiple fields with different choice selections.

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: BSD-3-Clause
  • 更新时间: 2015-01-28