milkyway-multimedia/ss-mwm-assets

New requirements backend for Silverstripe

Installs: 1 416

Dependents: 1

Suggesters: 0

Security: 0

Stars: 3

Watchers: 2

Forks: 2

Open Issues: 0

Type:silverstripe-module

0.3 2016-04-01 20:36 UTC

This package is not auto-updated.

Last update: 2024-03-16 23:00:33 UTC


README

Features

  • Access using: singleton('require')
  • You now have some sort of priority for your requirements
    • ->before
    • ->after
    • ->first
    • ->last
  • Defer CSS and javascript until page loads using: ->defer
  • Inline CSS and javascript using: ->inline
  • Replace certain files using: ->replace
  • Insert CSS and javascript into the using: ->head
  • New globals for your templates
    • $inlineFile(''): Inline a file at this section of a template
    • $placeIMG($width = 400, $height = 300, $categories = 'any', $filters = ''): Insert a placeholder image courtesy of placeimg.com
    • $loremIpsum($paragraphs = 1, $length = 'short', $opts = ['plaintext']): Insert lorem ipsum text courtesy of loripsum.net

Install

Add the following to your composer.json file


    "require"          : {
		"milkyway-multimedia/ss-mwm-assets": "dev-master"
	}

License

  • MIT

Version

  • Version 0.3 (Alpha)

Contact

Mellisa Hankins