2017 © Pedro PelĂĄez
 

silverstripe-module silverstripe-featureditems

Very simple way to add a slideshow or other set of featured images/links to a page. Includes easy markup for Foundation's Orbit component.

image

markguinn/silverstripe-featureditems

Very simple way to add a slideshow or other set of featured images/links to a page. Includes easy markup for Foundation's Orbit component.

  • Friday, June 17, 2016
  • by markguinn
  • Repository
  • 1 Watchers
  • 2 Stars
  • 226 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 4 Forks
  • 0 Open issues
  • 5 Versions
  • 1 % Grown

The README.md

Silverstripe Featured Items Module

Very simple way to add a slideshow or other set of featured images/links to a page. Includes easy markup for Foundation's Orbit component., (*1)

Requirements

  • Silverstripe 3.1+ (may work with 3.0, but hasn't been tested)
  • Compatible with but does not require Zurb Foundation

Features

  • Add HasFeaturedItems extension to any page type
  • A featured item contains an image and links to:
    • an external url
    • an internal page
    • a video (youtube or vimeo)
  • LinksToVideo extension can be used on any dataobject to make linking to and embedding videos really easy - just enter the url and it parses out the video ID and gives you the correct embed code.
  • Include FeaturedItems template to get instant markup for use with Zurb Foundation's Orbit and Reveal components
  • Could easily be adapted to work with any slideshow component.

Usage

You need to add the “HasFeaturedItems” extension to any page type that should have them. You can do this via yaml config like so (this would go in a .yml file in mysite/_config):, (*2)

Page:
  extensions:
    - HasFeaturedItems

(replace Page with HomePage or XYZPage or whatever if you don’t want it on all types of pages), (*3)

Then in the page template just add:, (*4)

<% include FeaturedItems %>

If you’re using Zurb Foundation you’re good to go. If not you may need to change up the markup in that FeaturedItems template., (*5)

Developer(s)

Contributions welcome by pull request and/or bug report. Please follow Silverstripe code standards., (*6)

License (MIT)

Copyright (c) 2013 Mark Guinn, (*7)

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:, (*8)

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software., (*9)

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE., (*10)

The Versions

17/06 2016

dev-master

9999999-dev

Very simple way to add a slideshow or other set of featured images/links to a page. Includes easy markup for Foundation's Orbit component.

  Sources   Download

MIT

The Requires

 

foundation silverstripe slideshow orbit featured images

10/11 2015

1.1.1

1.1.1.0

Very simple way to add a slideshow or other set of featured images/links to a page. Includes easy markup for Foundation's Orbit component.

  Sources   Download

MIT

The Requires

 

foundation silverstripe slideshow orbit featured images

24/11 2014

1.1.0

1.1.0.0

Very simple way to add a slideshow or other set of featured images/links to a page. Includes easy markup for Foundation's Orbit component.

  Sources   Download

MIT

The Requires

 

foundation silverstripe slideshow orbit featured images

10/06 2014

1.0.1

1.0.1.0

Very simple way to add a slideshow or other set of featured images/links to a page. Includes easy markup for Foundation's Orbit component.

  Sources   Download

MIT

The Requires

 

foundation silverstripe slideshow orbit featured images

21/04 2014

1.0.0

1.0.0.0

Very simple way to add a slideshow or other set of featured images/links to a page. Includes easy markup for Foundation's Orbit component.

  Sources   Download

MIT

The Requires

 

foundation silverstripe slideshow orbit featured images