xmarkclx/silverstripe-extended-sortable-gallery-field 问题修复 & 功能扩展

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

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

xmarkclx/silverstripe-extended-sortable-gallery-field

最新稳定版本:1.0.3

Composer 安装命令:

composer require xmarkclx/silverstripe-extended-sortable-gallery-field

包简介

Easily upload multiple images, and drag and drop the order with support for subclasses of Image.

README 文档

README

Based off http://addons.silverstripe.org/add-ons/jonshutt/silverstripe-sortable-gallery-field.

Bulk upload images into a silverstripe gallery, drag and drop reordering. Choose files from desktop or images previously uploaded

The main difference is that this one allows sorting of subclasses of Image.

I.e

MyImageClass extends Image.

I found out image sorting does not work properly of the this is based off as of writing and made fixes but the fixes completely changed how it is done on the backend or the interface, thus it might break code that interfaces with John's code.

FEATURES

  • Subclasses support
  • bulk upload images
  • add images from files previously uploaded
  • drag and drop ordering of images

SAMPLE USAGE

class GalleryPage extends Page {
	static $has_many = array(  	 	
		'Images' => 'CustomImage'  
	);
	
	function getCMSFields() {
		$fields = parent::getCMSFields();
		
		$galleryField = new SortableGalleryField(
	            $name = 'Images',
	            $pageClassName = 'GalleryPage',
	            $className = 'CustomImage',
	            $title = 'Upload one or more images'
	        );
		$fields->addFieldToTab('Root.Images', $galleryField);
		
		return $fields;
	}
}

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: BSD-3-Clause
  • 更新时间: 2014-12-04

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固