Download the PHP package weboftalent/page-with-image without Composer
On this page you can find all versions of the php package weboftalent/page-with-image. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download weboftalent/page-with-image
More information about weboftalent/page-with-image
Files in weboftalent/page-with-image
Package page-with-image
Short Description Same as a standard page but with the addition of a main image
License BSD-3-Clause
Informations about the package page-with-image
Page With Image
Maintainers
- Gordon Anderson (Nickname: nontgor) [email protected]
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.
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).
Extending Provided Page Types
One can simply extend PageWithImage adding whatever is needed for the subclass as appropriate.
The above class AnimalPage will appear when right clicking on a PageWithImageFolder to add a new subpage.
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:
Repeat for each ThirdPartyPage type that you would like to have an image.
Requirements
- SilverStripe 3.1
TODO
- Tests
All versions of page-with-image with dependencies
weboftalent/twitter-tools Version ~1
micschk/silverstripe-liveseo Version dev-master