Hey all,
I've started working on a custom theme based on the new theming feature, but I'm struggling to get it to work based on the instructions on the Wiki...
I started small, just to experiment a bit.. Here are the steps I followed:
----------------------------------------------------------------------------------------------------
### Set paths according to instructions @ https://github.com/OpenConext/OpenConext-engineblock/wiki/Development-Guidelines#theme-development
diff --git a/app/config/config.yml b/app/config/config.yml
index 6c8bba5..2ee0dab 100644
--- a/app/config/config.yml
+++ b/app/config/config.yml
@@ -57,8 +57,8 @@ twig:
- "%kernel.root_dir%/../theme/material/templates/modules": theme
- "%kernel.root_dir%/../theme/material/templates/layouts": themeLayouts
+ "%kernel.root_dir%/../theme/themerijksoverheid/templates/modules": theme
+ "%kernel.root_dir%/../theme/themerijksoverheid/templates/layouts": themeLayouts
### Touch an empty application.js; equal to the OC-theme @ https://github.com/OpenConext/OpenConext-engineblock/blob/master/theme/material/javascripts/theme/openconext/application.js - Without it npm run build will fail
diff --git a/theme/material/javascripts/theme/themerijksoverheid/application.js b/theme/material/javascripts/theme/themerijksoverheid/application.js
new file mode 100644
index 0000000..e69de29
### Equal to the OC-theme @ https://github.com/OpenConext/OpenConext-engineblock/blob/master/theme/material/stylesheets/theme/openconext/_theme.sass
diff --git a/theme/material/stylesheets/theme/themerijksoverheid/_theme.sass b/theme/material/stylesheets/theme/themerijksoverheid/_theme.sass
new file mode 100644
index 0000000..88844a3
--- /dev/null
+++ b/theme/material/stylesheets/theme/themerijksoverheid/_theme.sass
@@ -0,0 +1 @@
+@import "shared/components/_language.css.sass"
### Content referenced from the above theme/material/stylesheets/theme/themerijksoverheid/_theme.sass
diff --git a/theme/material/stylesheets/theme/themerijksoverheid/shared/components/_language.css.sass b/theme/material/stylesheets/theme/themerijkso
new file mode 100644
index 0000000..c1a80a4
--- /dev/null
+++ b/theme/material/stylesheets/theme/themerijksoverheid/shared/components/_language.css.sass
### Add two templates we override
theme/themerijksoverheid/templates/layouts/scripts/default.html.twig
theme/themerijksoverheid/templates/modules/Authentication/View/Proxy/wayf.html.twig
### Run install npm install
EB_THEME=themerijksoverheid npm run build
composer install
----------------------------------------------------------------------------------------------------
Now when I try and access the engineblock endpoint, I'm facing errors like:
Unable to find template "@theme/Default/View/Error/display.html.twig"
See attachment for full trace...
Now the question is... What am I missing here / doing wrong?
Thanks for helping!
- Tim