| Branch | Travis-ci |
|---|---|
| master | |
| 2.0 |
You can install the Block module, with the following command which allows the module to be edited for your project.
php artisan asgard:download:module asgardcms/blog --migrationsYou can install the Block module with composer:
$ composer require asgardcms/blockThen run the following command to install the database tables:
$ php artisan module:migrate BlockIn the backend GUI, go to Users > Roles > Admin. Then the permissions tab, and give the Admin role the permissions for the block module.
This is a very simple module to create re-usable blocks of content. The blocks of content are created in the administration. You give it a name and a content.
After this, you'll be able to get the content of a block with the following code:
{!! Block::get('block-name') !!}Hooks are special events, where it allows you to change the data stored before it's stored in the database.
Triggered before a block is created.
Triggered before a block is updated.
Triggered when a block body gets displayed.
All AsgardCMS modules respect Semantic Versioning.