thehustle / silverstripe-blocks
A SilverStripe module to create couple of custom multiple blocks.
Installs: 86
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
Type:silverstripe-vendormodule
Requires
- php: ^7.1 || ^8.0
- dnadesign/silverstripe-elemental: ^4 || ^5
- silverstripe/cms: ^4 || ^5
- silverstripe/framework: ^4 || ^5
README
Install the module via Composer:
composer require thehustle/silverstripe-blocks
This command installs its dependencies as well, including the dnadesign/silverstripe-elemental
module and dnadesign/silverstripe-elemental-list
module so you don't have to install them separately.
Run Composer Commands
composer vendor-expose composer dump-autoload
Most importantly, don't forget to run dev/build
or dev/build?flush=all
after.
Overriding Layouts
To override the layout of the template blocks, you can create a new template file in your theme's template directory. Make sure to follow the Namespace and Directory structure of the original template file.
mkdir themes/your-theme/templates/TheHustle/Layout/ touch Accordion.ss touch AccordionItem.ss touch Tab.ss touch TabItem.ss
Don't forget to run dev/build
or dev/build?flush=all
after creating the new template files.
http://yourdomain.com/dev/build
or
http://yourdomain.com/dev/build?flush=all