I want custom subthemes, one for admin and one for front end. both need to load the leaflet js library that im trying to put into a custom module.
Ive got the subtheme bit working, and my global-scripts js running, but cant get module loaded or running.
themes/angas_admin/
angas_admin.info.yml
# subtheme by haydent httech.com.au
name: Angas Admin
type: theme
description: 'seven subtheme by hayden - httech.com.au'
core: 8.x
base theme: seven
libraries:
- angas_admin/global-styling
- angas_admin/global-scripts
- angas_module/leaflet
regions:
header: 'Header'
pre_content: 'Pre-content'
breadcrumb: Breadcrumb
highlighted: Highlighted
help: Help
content: Content
page_top: 'Page top'
page_bottom: 'Page bottom'
sidebar_first: 'First sidebar'
regions_hidden:
- sidebar_first
angas_admin.libraries.yml
global-styling:
version: 1.x
css:
theme:
css/style.css: {}
global-scripts:
version: 1.x
js:
js/script.js: {}
modules/angas_module/
angas_module.info.yml
name: Angas Module
description: map by haydent httech.com.au
type: module
core: 8.x
libraries:
- angas_module/leaflet
angas_module.libraries.yml
leaflet:
version: 1.x
css:
theme:
css/leaflet.css: {}
js:
js/leaflet.js: {}