2017 © Pedro Peláez
 

silverstripe-module silverstripe-requirements-utilities

Utilities for theme dependent bundled requirements

image

titledk/silverstripe-requirements-utilities

Utilities for theme dependent bundled requirements

  • Tuesday, February 9, 2016
  • by titledk
  • Repository
  • 2 Watchers
  • 6 Stars
  • 83 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

Silverstripe Requirements Utilities

Utilities for theme dependent bundled requirements., (*1)

Example

Configure your requirements in a yml file, and load them by calling RequirementsHelper::load_requirements(); in Page_Controller::init()., (*2)

Example yml file - you could place it in mysite/_config/requirements.yml:, (*3)

---
name: requirements
---

RequirementsHelper:
  theme1:
    javascript-combined:
      lib:
        - "$ThemeDir/js/jquery.gmap.min.js"
        - "$ThemeDir/js/jquery.easing.1.3.js"
        - "$ThemeDir/js/jquery.lavalamp-1.3.5.min.js"
        - "$ThemeDir/js/superfish.js"
        - "$ThemeDir/js/jquery.quicksand.js"
        - "$ThemeDir/js/jquery.quicksand.init.js"
        - "$ThemeDir/js/jquery.hoverintent.min.js"
        - "$ThemeDir/js/jquery.scrollTo-1.4.2-min.js"
        - "$ThemeDir/js/jquery.footer.custom.js"
    css: 
      screen: "$ThemeDir/css/style.css"
      print: "$ThemeDir/css/print.css"
  theme2:
    javascript-combined:
      lib:
        - "$ThemeDir/bower_components/jquery-1.11.2.min/index.js"
        - "$ThemeDir/bower_components/foundation/js/foundation.min.js"
        - "$ThemeDir/bower_components/shufflejs/dist/jquery.shuffle.js"
        - "jreject/js/jquery.reject.js"
      app:
        - "$ThemeDir/js/app.js"
        - "$ThemeDir/js/titledk.mediaqueries.js"
        - "$ThemeDir/js/sw.slideout.js"
        - "$ThemeDir/js/jreject.js"
        - "$ThemeDir/js/pages/PortfolioPage.js"
    css-combined:
      lib:
        - "jreject/css/jquery.reject.css"
    css: 
      screen: "$ThemeDir/css/app.css"
      print: "$ThemeDir/css/print.css"

The Versions

09/02 2016

dev-master

9999999-dev https://github.com/titledk/silverstripe-requirements-utilities

Utilities for theme dependent bundled requirements

  Sources   Download

MIT

The Requires

 

css javascript silverstripe requirements