Skip to content

Commit d4928ea

Browse files
authored
add docs for setting page title custom postfix (#1899)
1 parent ddcb4d7 commit d4928ea

File tree

6 files changed

+106
-0
lines changed

6 files changed

+106
-0
lines changed
10.8 KB
Loading

content/kubermatic/main/tutorials-howtos/dashboard-customization/_index.en.md

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,3 +131,38 @@ assume that we have downloaded a `light.css` file and will be preparing a new th
131131
```
132132

133133
That's it. After restarting the application, theme picker in the `Account` view should show your new `Solar` theme.
134+
135+
## Setting Custom Postfix for the Page Title
136+
137+
You can add a custom postfix to the page title from the UI config in the KubermaticConfiguration CRD on the master cluster.
138+
139+
Add the `postfix_page_title` field under `spec.ui.config` as shown below:
140+
141+
```bash
142+
kubectl -n kubermatic get kubermaticconfigurations
143+
# NAME AGE
144+
# kubermatic 2h
145+
146+
kubectl -n kubermatic get kubermaticconfiguration kubermatic -o yaml
147+
# apiVersion: kubermatic.k8c.io/v1
148+
# kind: KubermaticConfiguration
149+
# metadata:
150+
# finalizers:
151+
# - operator.kubermatic.io/cleanup
152+
# name: kubermatic
153+
# namespace: kubermatic
154+
# spec:
155+
# ...
156+
# ui:
157+
# config: |
158+
# {
159+
# ...
160+
# "postfix_page_title": "Kubermatic Kubernetes Platform",
161+
# ...
162+
# }
163+
# ...
164+
```
165+
166+
After adding the postfix_page_title, you will see the postfix displayed in the browser tab title.
167+
168+
![Page Title](@/images/ui/page-title.png?classes=shadow,border "Page title")
10.8 KB
Loading

content/kubermatic/v2.27/tutorials-howtos/dashboard-customization/_index.en.md

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,3 +131,38 @@ assume that we have downloaded a `light.css` file and will be preparing a new th
131131
```
132132

133133
That's it. After restarting the application, theme picker in the `Account` view should show your new `Solar` theme.
134+
135+
## Setting Custom Postfix for the Page Title
136+
137+
You can add a custom postfix to the page title from the UI config in the KubermaticConfiguration CRD on the master cluster.
138+
139+
Add the `postfix_page_title` field under `spec.ui.config` as shown below:
140+
141+
```bash
142+
kubectl -n kubermatic get kubermaticconfigurations
143+
# NAME AGE
144+
# kubermatic 2h
145+
146+
kubectl -n kubermatic get kubermaticconfiguration kubermatic -o yaml
147+
# apiVersion: kubermatic.k8c.io/v1
148+
# kind: KubermaticConfiguration
149+
# metadata:
150+
# finalizers:
151+
# - operator.kubermatic.io/cleanup
152+
# name: kubermatic
153+
# namespace: kubermatic
154+
# spec:
155+
# ...
156+
# ui:
157+
# config: |
158+
# {
159+
# ...
160+
# "postfix_page_title": "Kubermatic Kubernetes Platform",
161+
# ...
162+
# }
163+
# ...
164+
```
165+
166+
After adding the postfix_page_title, you will see the postfix displayed in the browser tab title.
167+
168+
![Page Title](@/images/ui/page-title.png?classes=shadow,border "Page title")
10.8 KB
Loading

content/kubermatic/v2.28/tutorials-howtos/dashboard-customization/_index.en.md

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,3 +131,39 @@ assume that we have downloaded a `light.css` file and will be preparing a new th
131131
```
132132

133133
That's it. After restarting the application, theme picker in the `Account` view should show your new `Solar` theme.
134+
135+
136+
## Setting Custom Postfix for the Page Title
137+
138+
You can add a custom postfix to the page title from the UI config in the KubermaticConfiguration CRD on the master cluster.
139+
140+
Add the `postfix_page_title` field under `spec.ui.config` as shown below:
141+
142+
```bash
143+
kubectl -n kubermatic get kubermaticconfigurations
144+
# NAME AGE
145+
# kubermatic 2h
146+
147+
kubectl -n kubermatic get kubermaticconfiguration kubermatic -o yaml
148+
# apiVersion: kubermatic.k8c.io/v1
149+
# kind: KubermaticConfiguration
150+
# metadata:
151+
# finalizers:
152+
# - operator.kubermatic.io/cleanup
153+
# name: kubermatic
154+
# namespace: kubermatic
155+
# spec:
156+
# ...
157+
# ui:
158+
# config: |
159+
# {
160+
# ...
161+
# "postfix_page_title": "Kubermatic Kubernetes Platform",
162+
# ...
163+
# }
164+
# ...
165+
```
166+
167+
After adding the postfix_page_title, you will see the postfix displayed in the browser tab title.
168+
169+
![Page Title](@/images/ui/page-title.png?classes=shadow,border "Page title")

0 commit comments

Comments
 (0)