friendsofsilverstripe/handypages
Composer 安装命令:
composer require friendsofsilverstripe/handypages
包简介
A handy set of page types and modules for building a new website.
关键字:
README 文档
README
A collection of useful PHP classes and SilverStripe modules for SS 3.x to get a new website started quickly.
The generic page type comes with the following deactivatable options for inputs:
- alternative title and intro (including min/max-length validation)
- an image per page (including width/height validation)
- brand colors (only adjustable by admins) and a option to choose a color per page
- configuration switch to use the blocks module.
and the following modules:
- Display logic
- SortableGridField
- heyday' menu manager
- ZenValidator to validate inputs of content-editors and website users
- Inheritage of values from parent page types
- Backendmessages for message boxes.
How to use this?
Simply extend your custom page types of this GenericPage:
class MyNewPage extends GenericPage
{
/**
* here goes your actual code...
*/
}
and then your can configure
MyNewPage:
useBlocksModule: true
hideCMSOptions:
- AlternativeTitle
intro:
minLength: 100
maxLength: 1000
image:
width: 200
height: 300
Want it? Installation
Just run:
# install the package
composer require friendsofsilverstripe/handypages
# add run dev/build
php ./framework/cli-script.php dev/build
misc: Future ideas/development, issues, Contributing, License
统计信息
- 总下载量: 6
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 2
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 1
其他信息
- 授权协议: BSD-3-Clause
- 更新时间: 2016-07-04