titledk / silverstripe-requirements-utilities
Utilities for theme dependent bundled requirements
Installs: 87
Dependents: 0
Suggesters: 0
Security: 0
Stars: 5
Watchers: 3
Forks: 1
Open Issues: 0
Type:silverstripe-module
Requires
- silverstripe/framework: ~3.1
This package is not auto-updated.
Last update: 2024-12-21 19:37:04 UTC
README
Utilities for theme dependent bundled requirements.
Example
Configure your requirements in a yml file, and load them by calling RequirementsHelper::load_requirements();
in Page_Controller::init()
.
Example yml file - you could place it in mysite/_config/requirements.yml
:
--- 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"