Giter Site home page Giter Site logo

gheggie / silverstripe-mediawesome Goto Github PK

View Code? Open in Web Editor NEW

This project forked from nglasl/silverstripe-mediawesome

0.0 1.0 0.0 419 KB

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

License: BSD 3-Clause "New" or "Revised" License

PHP 90.63% CSS 2.34% Scheme 7.03%

silverstripe-mediawesome's Introduction

The current release is 2.0.1

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.1.X or 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(
		'End Date',
		'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, [email protected]

silverstripe-mediawesome's People

Contributors

silbinarywolf avatar nglasl avatar

Watchers

Grant Heggie avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.