Skip to content
This repository has been archived by the owner on Jan 10, 2021. It is now read-only.

This module allows creation of dynamic media holders/pages with CMS customisable types and attributes (blogs, events, news, publications), including versioning.

License

Notifications You must be signed in to change notification settings

nglasl/silverstripe-mediawesome

Folders and files

NameName
Last commit message
Last commit date

Latest commit

5e46b41 · Mar 15, 2016
Apr 28, 2015
Mar 15, 2016
Jan 17, 2016
Jul 12, 2015
Mar 15, 2016
Sep 17, 2013
Mar 11, 2016
May 1, 2015
Mar 11, 2016

Repository files navigation

The current release is 1.2.0

A module for SilverStripe which will allow creation of dynamic media holders/pages
with CMS customisable types and attributes (blogs, events, news, publications).

Requirement

  • SilverStripe 3.2.X

Getting Started

  • Place the module under your root project directory.
  • /dev/build
  • Create a media holder.
  • Configure the media type.
  • Create media pages.

Overview

Default Media Types

These are the default media types and their respective attributes.

array(
	'Blog' => array(
		'Author'
	),
	'Event' => array(
		'Start Time',
		'End Time',
		'Location'
	),
	'News' => array(
		'Author'
	),
	'Publication' => array(
		'Author'
	)
);

Apply custom default media types with respective attributes, or additional attributes to existing default types.

MediaPage::customise_defaults(array(
	'Media Type' => array(
		'Attribute'
	)
));

These may also be added through the CMS, depending on the current user permissions.

types

  • Select a media holder.
  • Select Manage ALL Media
  • Select Types and Attributes

Dynamic Media Attributes

These may be customised through the CMS, depending on the current user permissions.

attributes

  • Select a media holder.
  • Select Manage ALL Media
  • Select Types and Attributes
  • Select the respective type.

These will be applied to new and existing media pages of the respective type.

Media Categories and Tags

categories-and-tags

  • Select a media holder.
  • Select Manage ALL Media
  • Select Categories and Tags

CMS Permissions

These may be changed through the site configuration by an administrator.

  • Select Settings
  • Select Access

Customisation of media types and their respective attributes will be restricted.

Filtering Media Pages

A media holder request may have optional date, category and tag filters, which are extendable by developers.

Retrieve the date filter form in the media holder template:

$DateFilterForm

It is also possible to represent the date in a year/month/day/media URL format.

URL-formatting

Smart Templating

Custom media type templates may be defined for your media holder/page:

MediaHolder_Blog.ss or MediaPage_Blog.ss

Retrieve a specific media page attribute in templates:

$Attribute('Author')

To see examples, look at the default templates:

MediaHolder.ss and MediaPage.ss

Maintainer Contact

Nathan Glasl, nathan@silverstripe.com.au

About

This module allows creation of dynamic media holders/pages with CMS customisable types and attributes (blogs, events, news, publications), including versioning.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published