I am working on the new theme using webpack building css and js. There is no problems to work with styling sass/css, but the theme doesn't read js files after builded webpack. Is there way to get this?
I am trying to use packages and modules from the npm registry to generate the css and js needed for my theme. I use webpack to manage packages and get .css and .js output files. According to the developer documentation https://docs.backdropcms.org/documentation/creating-sub-themes I need to add files style sheets [all] [] = mystyle.css
and scripts [] = myscript.js
to the .info file. And it works correctly for both of them if I use a standalone js file. But the js file I get as output from webpack is not. This works for Drupal 9, so I thought it might work for Backdrop too. Let me know if I'm wrong.
There is a Drupal 7 contrib module that "lets the administrator see all administration pages in her preferred language" and which could be ported to Backdrop: https://www.drupal.org/project/...
Posted6 days 1 hour ago by Olaf Grabienski (Olafski) on:
@stpaultim – You're right: my approach affects also the main menu. I guess, because menus are also considered as user interface (not as content).
@findlabnet – If I didn't miss anything,...
Posted6 days 1 hour ago by Olaf Grabienski (Olafski) on:
@olaf - Sorry, but I don't think that works. I tried it and you are correct, with this change, I can switch from the English version to the German version of a page, without changing the entire...
Use case is an English speaking support person working on a multilingual site and fixing bugs with the French translation of the content.
I found one solution for your use...
Posted6 days 13 hours ago by Olaf Grabienski (Olafski) on:
Comments
I am not sure that I understand the question?
Are you building a new theme for Backdrop?
Can you provide a little more information about the specifics of your problem?
I am trying to use packages and modules from the npm registry to generate the css and js needed for my theme. I use webpack to manage packages and get .css and .js output files. According to the developer documentation https://docs.backdropcms.org/documentation/creating-sub-themes I need to add files
style sheets [all] [] = mystyle.cssand
scripts [] = myscript.jsto the .info file. And it works correctly for both of them if I use a standalone js file. But the js file I get as output from webpack is not. This works for Drupal 9, so I thought it might work for Backdrop too. Let me know if I'm wrong.