2017 © Pedro Peláez
 

silverstripe-module page-with-image

Same as a standard page but with the addition of a main image

image

weboftalent/page-with-image

Same as a standard page but with the addition of a main image

  • Tuesday, February 2, 2016
  • by weboftalent
  • Repository
  • 1 Watchers
  • 0 Stars
  • 166 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 1 Forks
  • 1 Open issues
  • 6 Versions
  • 0 % Grown

The README.md

Page With Image

Build Status Scrutinizer Code Quality Code Coverage Build Status codecov.io, (*1)

Latest Stable Version Latest Unstable Version Total Downloads License Monthly Downloads Daily Downloads, (*2)

Dependency Status Reference Status, (*3)

codecov.io, (*4)

Maintainers

Introduction

This module provides for rendering subpages as images of folders, which themselves can contain similar folders. Images can also be attached to third party module page types and rendered in the same way., (*5)

Documentation

Provided Page Types

A PageWithImage is container within a PageWithImageFolder. Both are the same as a standard Page, but with the addition of a main image (MainImage field)., (*6)

Extending Provided Page Types

One can simply extend PageWithImage adding whatever is needed for the subclass as appropriate., (*7)

class AnimalPage extends PageWithImage {
    private static $db = array('Name' => 'Varchar');
}

The above class AnimalPage will appear when right clicking on a PageWithImageFolder to add a new subpage., (*8)

Using the AddImageExtension

There are 2 configuration changes required for a Page type that does not already have an attached image. * Add the AddImageExtension * Allow the third party Page type be a child of PageWithImageFolder (otherwise you can't add it) To do this add a config file, say pagewithimage.yml in your own module or mysite/_config directory with YML as per the following:, (*9)

---
Name: yoursitepagewithimage
After: pagewithimage
---
PageWithImageFolder:
  allowed_children:
    - PageWithImage
    - ThirdPartyPage
ThirdPartyPage:
  extensions:
    - AddImageExtension

Repeat for each ThirdPartyPage type that you would like to have an image., (*10)

Requirements

  • SilverStripe 3.1

TODO

  • Tests

The Versions

02/02 2016

dev-master

9999999-dev

Same as a standard page but with the addition of a main image

  Sources   Download

BSD-3-Clause

The Requires

 

image silverstripe weboftalent

02/02 2016

1.0.2

1.0.2.0

Same as a standard page but with the addition of a main image

  Sources   Download

BSD-3-Clause

The Requires

 

image silverstripe weboftalent

02/02 2016

1.0.1

1.0.1.0

Same as a standard page but with the addition of a main image

  Sources   Download

BSD-3-Clause

The Requires

 

image silverstripe weboftalent

19/01 2016

1.0.0

1.0.0.0

Same as a standard page but with the addition of a main image

  Sources   Download

BSD-3-Clause

The Requires

 

image silverstripe weboftalent

19/01 2016

dev-continuous_integration

dev-continuous_integration

Same as a standard page but with the addition of a main image

  Sources   Download

The Requires

 

image silverstripe weboftalent

28/05 2015

3.1.x-dev

3.1.9999999.9999999-dev

Same as a standard page but with the addition of a main image

  Sources   Download

The Requires

 

image silverstripe weboftalent