Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/dof-dss/nicsdru_cybersecurity

Drupal 8 project for Cybersecurity site
https://github.com/dof-dss/nicsdru_cybersecurity

drupal

Last synced: 11 days ago
JSON representation

Drupal 8 project for Cybersecurity site

Awesome Lists containing this project

README

        

# Origins Drupal

[![CircleCI](https://circleci.com/gh/dof-dss/nicsdru_cybersecurity.svg?style=svg)](https://circleci.com/gh/dof-dss/nicsdru_cybersecurity)

Base Drupal install for Origins sites.

When installing site run
```shell script
lando drush cset system.site uuid 55da8ecb-a446-49d7-9c85-df0c7228066e
```

### Structure Sync
After running drush config-import, also run
```shell script
lando drush ia
```
This imports the block content, menu links and taxonomy terms into the site.

If you want to export any blocks, menus or taxonomy terms you have used run
```shell script
lando drush ea
```

For more information on the structure sync commands please visit https://www.drupal.org/project/structure_sync

### Backup and Migrate
Database and public files directory backups have been included in the folder 'backups'. This can be imported into your
site to allow you to view the site progress.

To restore these backups after installing the site and importing the config, navigate to `Manage > Configuration >
Development > Backup and Migrate`.

Click on the Restore tab, upload the .mysql.gz under 'Upload a Backup File'. Choose Restore To Default Drupal Database
in the dropdown options and then click Restore now.

Then, upload the .tar.gz under 'Upload a Backup File'. Choose Restore To Public Files Directory in the dropdown options
and then click Restore now.

Now set the homepage to `\home` in `Manage > Configuration > System Site Settings > Front Page`.

### Configuration split
This site uses "config split" to allow configurations to be defined per environment. Ie: local development modules like "devel"
will be enabled for local development and remain disabled for other environments.

The config split settings are found in the ../config folder.

In the settings.php for local development you will need to add these lines:

$config['config_split.config_split.local_dev']['status'] = TRUE;

## Patches
There is a patch applied to the Layout Builder module in core. It allows contextual icons to appear on blocks that have been inserted using layout builder, where they did not before.

The lines of code applying this patch can be found in composer.json under `extra > patches`:

```json
"drupal/core": {
"Add contextual link to blocks in layout builder": "https://www.drupal.org/files/issues/2019-09-06/contextual_links_with_LB-3020876-18_0.patch"
}
```