Skip to content

Add documentation for configuring a custom page title postfix #1899

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file added content/kubermatic/main/images/ui/page-title.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
Expand Up @@ -131,3 +131,38 @@ assume that we have downloaded a `light.css` file and will be preparing a new th
```

That's it. After restarting the application, theme picker in the `Account` view should show your new `Solar` theme.

## Setting Custom Postfix for the Page Title

You can add a custom postfix to the page title from the UI config in the KubermaticConfiguration CRD on the master cluster.

Add the `postfix_page_title` field under `spec.ui.config` as shown below:

```bash
kubectl -n kubermatic get kubermaticconfigurations
# NAME AGE
# kubermatic 2h

kubectl -n kubermatic get kubermaticconfiguration kubermatic -o yaml
# apiVersion: kubermatic.k8c.io/v1
# kind: KubermaticConfiguration
# metadata:
# finalizers:
# - operator.kubermatic.io/cleanup
# name: kubermatic
# namespace: kubermatic
# spec:
# ...
# ui:
# config: |
# {
# ...
# "postfix_page_title": "Kubermatic Kubernetes Platform",
# ...
# }
# ...
```

After adding the postfix_page_title, you will see the postfix displayed in the browser tab title.

![Page Title](@/images/ui/page-title.png?classes=shadow,border "Page title")
Binary file added content/kubermatic/v2.27/images/ui/page-title.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
Expand Up @@ -131,3 +131,38 @@ assume that we have downloaded a `light.css` file and will be preparing a new th
```

That's it. After restarting the application, theme picker in the `Account` view should show your new `Solar` theme.

## Setting Custom Postfix for the Page Title

You can add a custom postfix to the page title from the UI config in the KubermaticConfiguration CRD on the master cluster.

Add the `postfix_page_title` field under `spec.ui.config` as shown below:

```bash
kubectl -n kubermatic get kubermaticconfigurations
# NAME AGE
# kubermatic 2h

kubectl -n kubermatic get kubermaticconfiguration kubermatic -o yaml
# apiVersion: kubermatic.k8c.io/v1
# kind: KubermaticConfiguration
# metadata:
# finalizers:
# - operator.kubermatic.io/cleanup
# name: kubermatic
# namespace: kubermatic
# spec:
# ...
# ui:
# config: |
# {
# ...
# "postfix_page_title": "Kubermatic Kubernetes Platform",
# ...
# }
# ...
```

After adding the postfix_page_title, you will see the postfix displayed in the browser tab title.

![Page Title](@/images/ui/page-title.png?classes=shadow,border "Page title")
Binary file added content/kubermatic/v2.28/images/ui/page-title.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
Expand Up @@ -131,3 +131,39 @@ assume that we have downloaded a `light.css` file and will be preparing a new th
```

That's it. After restarting the application, theme picker in the `Account` view should show your new `Solar` theme.


## Setting Custom Postfix for the Page Title

You can add a custom postfix to the page title from the UI config in the KubermaticConfiguration CRD on the master cluster.

Add the `postfix_page_title` field under `spec.ui.config` as shown below:

```bash
kubectl -n kubermatic get kubermaticconfigurations
# NAME AGE
# kubermatic 2h

kubectl -n kubermatic get kubermaticconfiguration kubermatic -o yaml
# apiVersion: kubermatic.k8c.io/v1
# kind: KubermaticConfiguration
# metadata:
# finalizers:
# - operator.kubermatic.io/cleanup
# name: kubermatic
# namespace: kubermatic
# spec:
# ...
# ui:
# config: |
# {
# ...
# "postfix_page_title": "Kubermatic Kubernetes Platform",
# ...
# }
# ...
```

After adding the postfix_page_title, you will see the postfix displayed in the browser tab title.

![Page Title](@/images/ui/page-title.png?classes=shadow,border "Page title")