Skip to content

restruct/silverstripe-featuredimages

Repository files navigation

Extension to quickly add a featured image to a pagetype

Features

  • Adds a simple uploadfield to a page for a featuredimage

One/single image

or set of featured images (max amount configurable)

multiple sortable images

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 %>

About

Extension to quickly add a featured image to a pagetype

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 3

  •  
  •  
  •  

Languages