dpezer / ss-bs
Bootstrap 4 starter theme for SilverStripe > 4.2
Installs: 439
Dependents: 1
Suggesters: 0
Security: 0
Stars: 1
Watchers: 1
Forks: 0
Language:JavaScript
Type:silverstripe-theme
Requires
- composer/installers: *
- dpezer/ss-bs: dev-master
- silverstripe/framework: >=4.2
- dev-dependabot/npm_and_yarn/path-parse-1.0.7
- dev-dependabot/npm_and_yarn/postcss-7.0.36
- dev-dependabot/npm_and_yarn/browserslist-4.16.6
- dev-dependabot/npm_and_yarn/lodash-4.17.21
- dev-dependabot/npm_and_yarn/hosted-git-info-2.8.9
- dev-dependabot/npm_and_yarn/y18n-3.2.2
- dev-dependabot/npm_and_yarn/ini-1.3.8
- dev-dependabot/npm_and_yarn/npm/node-sass-4.14.1
- dev-dependabot/npm_and_yarn/npm/lodash-4.17.19
This package is auto-updated.
Last update: 2025-04-12 00:19:59 UTC
README
This is Bootstrap 4 starter theme for SilverStripe built by Darjan Pezer.
Version: 2.3
Requirements
- SilverStripe 4.x or above (both framework and cms)
- Node and NPM (Node is used for dev tasks such as compiling sass, bundling and minifying js, etc. Npm is used for package management for node components.)
- Gulp (install gulp with command
npm install -g gulp
)
Theme includes
Installation Instructions
-
Install with composer
composer require dpezer/ss-bs
or ... -
... copy the theme into the
themes/
directory of your SilverStripe project. If you've named it correctly, there should be a directory calledthemes/ss-bs/templates
. -
Add the following to your
app/_config/theme.yml
file.--- Name: mytheme --- SilverStripe\View\SSViewer: themes: - '$public' - 'ss-bs' - '$default'
-
Add the following to your
app/src/PageController.php
file insideinit()
function:Requirements::combine_files( 'scripts.combined.js', [ 'themes/ss-bs/javascript/jquery/jquery-3.5.1.js', 'themes/ss-bs/javascript/popper/popper.js', 'themes/ss-bs/javascript/bootstrap/bootstrap.js' ] );
-
Run
composer vendor-expose
to expose theme folder if needed.
Compiling CSS
- Install all required npm plugins with
npm install
command - Run command
gulp
folder - Put your CSS/SCSS files into
themes/ss-bs/app/scss
and import them inthemes/ss-bs/app/scss/style.scss