restruct / silverstripe-featuredimages
Extension to quickly add a (set of) featured image(s) to a pagetype
Installs: 179
Dependents: 1
Suggesters: 0
Security: 0
Stars: 1
Watchers: 3
Forks: 2
Open Issues: 0
Type:silverstripe-vendormodule
Requires
- bummzack/sortablefile: ^2.0
- silverstripe/cms: ^4.0
- silverstripe/vendor-plugin: ^1.0
README
Features
- Adds a simple uploadfield to a page for a featuredimage
or set of featured images (max amount configurable)
Requirements
- SilverStripe 4.1 or newer
Installation
composer require restruct/silverstripe-featuredimages dev-master
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 %>