Adds some basic blocks and extensions to allow for rapid SilverStripe development.
- sheadawson/silverstripe-blocks: "^1.1"
- Bootstrap 4 as your front end framework (looking to expand in the future but this is the one we use)
composer require BiffBangPow/bbp-blocks
- Composer install or unpack the module in the root of your project
- Add what you need to your config.yml from the blocks module to get the blocks working
- Do a
dev/build
. - Head to a page to begin adding the blocks.
The blocks included here are designed to have only enough styles for basic layout, try adding some basic styles and going from there, for example the following scss:
.text-and-media-block {
.text, .content {
min-height: 400px;
}
.text {
padding: 50px;
}
}
.text-and-image-block {
color: white;
background-color: #3F51B5;
}
.call-to-action-block {
.call-to-action-content {
width: 100%;
text-align: center;
}
}
The extensions in this bundle are designed to be added to your blocks to add easy functionality. They are mostly centered around responsive showing and hiding of content, as we found this gave a lot of control to the end user.