Hi,
We're running multiple NodeRED instances (under FlowFuse), each running its own Dashboard 2 configuration.
Would it be possible to have one central ui-template node where all other Dashboard 2 sites get their CSS main from?
Thanks!
Hi,
We're running multiple NodeRED instances (under FlowFuse), each running its own Dashboard 2 configuration.
Would it be possible to have one central ui-template node where all other Dashboard 2 sites get their CSS main from?
Thanks!
To achieve this, you can follow these steps:
<link> tag in the <head> section of the template.For example, your ui-template node template might look like this:
html
<head>
<link rel="stylesheet" type="text/css" href="http://central-location.com/main.css">
</head>
Replace "http://central-location.com/main.css" with the actual URL where your CSS file is hosted.
Or;
global.set:global.set('cssContent', '/* Your CSS content here */');
<style> tags to include the CSS content:html
Copy code
<head>
<style>
{{global.get('cssContent')}}
</style>
</head>
Ah yes.. of course! Solution 2 is perfect for me.
My train of thought about this was all wrong. Simple is best.
Thank you!