micschk/silverstripe-featuredimages

This package is abandoned and no longer maintained. The author suggests using the restruct/silverstripe-featuredimages package instead.

Extension to quickly add a (set of) featured image(s) to a pagetype

Installs: 57

Dependents: 2

Suggesters: 0

Security: 0

Stars: 1

Watchers: 3

Forks: 1

Open Issues: 0

Type:silverstripe-vendormodule

3.1.4 2020-10-30 13:08 UTC

This package is auto-updated.

Last update: 2021-06-20 04:58:50 UTC


README

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