| Posted by: WUICTeam - Thursday, November 12, 2026 9:01:18 AM |
|---|
| [b]Question[/b] I'm styling a dashboard from the designer's CSS editor. I type a new file name but nothing gets created, or the name I typed is changed. Where do the files end up, and what are the rules for the name? [b]Answer[/b] The most common cause is that the dashboard has not been saved yet: the CSS files live in a folder named after the board route ([c]dash_route[/c]), and until the dashboard has a route the editor has no folder to put them in. Save the dashboard first, then open the CSS editor. Once the dashboard is saved, the editor builds the path as [c]assets/<dash_route>/<name>[/c]. The rules applied to the name you type are: [list] [*]Only a file name is accepted, never a path. If it contains [c]/[/c] or [c]\[/c] it is rejected, so you cannot choose the folder. [*]Spaces are replaced with hyphens. [*][c].css[/c] is appended if you left it out. [/list] For example: [code] Typed: my dashboard styles Created: assets/<dash_route>/my-dashboard-styles.css Typed: shared/dash.css Result: rejected (contains a path separator) [/code] The rules you write in the sheet apply only to this dashboard at runtime, so for a visual problem on a single board this is safer than changing the application's global CSS. Two more things to check: the CSS editor is reserved to administrators (the [c]superadmin[/c] role), and it only accepts [c].css[/c] sheets with a relative path inside the project folder. Absolute paths, [c]..[/c] segments and other extensions are refused. [url=https://wuic-framework.com/docs/dashboard]Documentation: Dashboard[/url] |