2017 © Pedro Peláez
 

silverstripe-module handypages

A handy set of page types and modules for building a new website.

image

friendsofsilverstripe/handypages

A handy set of page types and modules for building a new website.

  • Friday, October 21, 2016
  • by spekulatius
  • Repository
  • 1 Watchers
  • 2 Stars
  • 6 Installations
  • PHP
  • 0 Dependents
  • 1 Suggesters
  • 2 Forks
  • 1 Open issues
  • 6 Versions
  • 0 % Grown

The README.md

useful base page-type for building a SilverStripe website. Latest Stable Version Latest Unstable Version Scrutinizer Code Quality Total Downloads License

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:, (*1)

  • 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:, (*2)

How to use this?

Simply extend your custom page types of this GenericPage:, (*3)

class MyNewPage extends GenericPage
{
    /**
     * here goes your actual code...
     */
}

and then your can configure, (*4)

MyNewPage:
  useBlocksModule: true
  hideCMSOptions:
    - AlternativeTitle
  intro:
    minLength: 100
    maxLength: 1000
  image:
    width: 200
    height: 300

Want it? Installation

Just run:, (*5)

# 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

The Versions