22title : Branding
33---
44
5- Branding
6- ===
5+ # Branding
76
87Dirigible allows you to change the branding of the platform.
98
109=== "Overview"
10+
1111- Module: ` platform-branding `
1212- Source: [ platform-branding/branding.js] ( https://github.com/eclipse/dirigible/blob/master/components/ui/platform-branding/src/main/resources/META-INF/dirigible/platform-branding/branding.js )
1313- Source: [ platform-branding/branding.mjs] ( https://github.com/eclipse/dirigible/blob/master/components/ui/platform-branding/src/main/resources/META-INF/dirigible/platform-branding/branding.mjs )
@@ -31,28 +31,28 @@ Use the `setBrandingInfo` function:
3131
3232``` javascript
3333setBrandingInfo ({
34- name: ' Dirigible' ,
35- brand: ' Eclipse' ,
36- brandUrl: ' https://www.dirigible.io/' ,
37- icons: {
38- favicon: ' /services/web/platform-branding/images/favicon.ico' ,
39- },
40- logo: ' /services/web/platform-branding/images/dirigible.svg' ,
41- theme: ' blimpkit-auto' ,
42- prefix: ' dirigible'
34+ name: " Dirigible" ,
35+ brand: " Eclipse" ,
36+ brandUrl: " https://www.dirigible.io/" ,
37+ icons: {
38+ favicon: " /services/web/platform-branding/images/favicon.ico" ,
39+ },
40+ logo: " /services/web/platform-branding/images/dirigible.svg" ,
41+ theme: " blimpkit-auto" ,
42+ prefix: " dirigible" ,
4343});
4444```
4545
46- Parameter | Description | Required
47- ------------ | ----------- | -----------
48- ** name** | The product name | no
49- ** brand** | The brand name | no
50- ** brandUrl** | The brand/product URL | no
51- ** icons** | Favicons | no
52- ** icons.favicon** | Favicon in ` .ico ` format | no
53- ** logo** | The brand/product logo | no
54- ** theme** | The default theme ID | no
55- ** prefix** | The prefix used for cookie and localStorage value keys | no
46+ | Parameter | Description | Required |
47+ | ----------------- | ------------------------------------------------------ | -------- |
48+ | ** name** | The product name | no |
49+ | ** brand** | The brand name | no |
50+ | ** brandUrl** | The brand/product URL | no |
51+ | ** icons** | Favicons | no |
52+ | ** icons.favicon** | Favicon in ` .ico ` format | no |
53+ | ** logo** | The brand/product logo | no |
54+ | ** theme** | The default theme ID | no |
55+ | ** prefix** | The prefix used for cookie and localStorage value keys | no |
5656
5757### Getting the brand information
5858
@@ -64,15 +64,25 @@ The branding constant will be a reference to the global branding information obj
6464
6565### Initializing the branding
6666
67- For standard Dirigible shells/perspectives/views/etc. you can just use the loader. Example:
67+ For standard shells, perspectives, views, and related components in Eclipse Dirigible, the PlatformAssets loader can be used directly.
68+
69+ Example:
6870
6971``` html
70- <script type = " text/javascript " src = " /services/js/platform-core/services/loader.js?id= view-js " ></ script >
72+ <meta name = " platform-links " category = " ng- view" / >
7173```
7274
73- In a custom view, you must include those two files in your shell/perspective/view/etc. and make sure they are the first to load.
75+ This approach ensures that all required assets for the specified category are automatically resolved and injected.
76+
77+ In a custom view, you must include those two files in your view. and make sure they are the first to load.
7478
7579``` html
76- <script type =" text/javascript" src =" /services/js/platform-branding/branding.js" ></script >
77- <script type =" text/javascript" src =" /services/web/platform-core/utilities/view.js" ></script >
78- ```
80+ <script
81+ type =" text/javascript"
82+ src =" /services/js/platform-branding/branding.js"
83+ ></script >
84+ <script
85+ type =" text/javascript"
86+ src =" /services/web/platform-core/utilities/view.js"
87+ ></script >
88+ ```
0 commit comments