useful base page-type for building a SilverStripe website.
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.
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
Just run:
# install the package
composer require friendsofsilverstripe/handypages
# add run dev/build
php ./framework/cli-script.php dev/build