定制 micschk/silverstripe-rightsidebar 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

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

micschk/silverstripe-rightsidebar

最新稳定版本:2.0

Composer 安装命令:

composer require micschk/silverstripe-rightsidebar

包简介

Allows adding a right-hand sidebar in the CMS to hold options/fields for the currently edited record

README 文档

README

Requirements

  • SilverStripe CMS & Framework 4+

Overview

Allows adding a right-hand sidebar in the CMS to hold options/fields for the currently edited record. Abstracted out from the Silverstripe Blog module for use on other pages as well (blog module by ao. Michael Strong/Silverstripe)

RightSidebar behaves like a tab (like tab it extends CompositeField).

Add use before class declaration:

use Restruct\RightSidebar\RightSidebar;

Usage (in getCMSfields):

	$fields->addFieldsToTab('Root.Main', RightSidebar::create('Options'));
	$fields->addFieldsToTab('Root.Main.Options', array(
		$publishDate = DatetimeField::create("PublishDate", "Publish Date"),
		TextField::create('Author')
	));

	// Add to Main tab (fixed width) and render an outer template to deal with our custom layout
	$fields->addFieldsToTab('Root.Main', RightSidebar::create('Options'));
	$fields->fieldByName('Root')->setTemplate('Restruct\RightSidebar\Forms\RightSidebarInner');

	// OR: Add it full-screen (collapsible) and render an outer template to deal with our custom layout
	$fields->insertBefore(RightSidebar::create('Options'), 'Root');
	$fields->fieldByName('Root')->setTemplate('Restruct\RightSidebar\Forms\RightSidebar');

统计信息

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

GitHub 信息

  • Stars: 11
  • Watchers: 7
  • Forks: 4
  • 开发语言: CSS

其他信息

  • 授权协议: BSD-2-Clause
  • 更新时间: 2015-05-05