restruct / silverstripe-featuredimages
Extension to quickly add a (set of) featured image(s) to a pagetype
Package info
github.com/restruct/silverstripe-featuredimages
Type:silverstripe-vendormodule
pkg:composer/restruct/silverstripe-featuredimages
Requires
- php: ^7.4 || ^8.0
- bummzack/sortablefile: ^2.2 || ^3
- silverstripe/cms: ^4 || ^5 || ^6
- silverstripe/vendor-plugin: ^1.6 || ^2 || ^3
Requires (Dev)
None
Suggests
None
Provides
None
Conflicts
None
Replaces
None
README
Features
- Adds a simple uploadfield to a page for a featuredimage
or set of featured images (max amount configurable)
Requirements
- Silverstripe 4, 5 or 6
- PHP 7.4 or newer
Installation
composer require restruct/silverstripe-featuredimages
Version compatibility
| Branch | Module version | Silverstripe | PHP |
|---|---|---|---|
main |
4.1.x and up |
^4 || ^5 || ^6 |
^7.4 || ^8.0 |
| (tags only) | 4.0.x |
^6 |
^8.3 |
| (tags only) | 3.x |
^4 || ^5 |
^7.1 || ^8.0 |
| (tags only) | 2.x |
^3 |
^5.6 || ^7.0 |
main is the only maintained line: it supports every Silverstripe version this module still
targets, so there is no separate maintenance branch. A version branch will be created only when a
change cannot be made compatible across the supported range.
composer.json is the source of truth for exact constraints; this table is a quick reference.
Apply extension to desired pagetypes:
Add to config.yml (max_featured_images is optional, default = 1):
Page: extensions: - '\Restruct\SilverStripe\FeaturedImages\FeaturedImageExtension' max_featured_images: 3
And use in templates as
$PageImage
or
<% loop $PageImages %>
$Me
<% end_loop %>

