Skip to content

Commit 23425d8

Browse files
committed
add docs for setting page title custom postfix
1 parent 57379e9 commit 23425d8

File tree

4 files changed

+70
-0
lines changed

4 files changed

+70
-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")

0 commit comments

Comments
 (0)