|
1
|
--- |
|
2
|
sidebar_position: 7 |
|
3
|
sidebar_label: "Manage Property Labels" |
|
4
|
tags: |
|
5
|
- user guide |
|
6
|
- settings |
|
7
|
products: |
|
8
|
- settings |
|
9
|
--- |
|
10
|
|
|
11
|
import { EllipsisHorizontal } from "@medusajs/icons" |
|
12
|
import { InlineIcon } from "docs-ui" |
|
13
|
|
|
14
|
export const metadata = { |
|
15
|
title: `Manage Property Labels in Medusa Admin`, |
|
16
|
} |
|
17
|
|
|
18
|
# {metadata.title} |
|
19
|
|
|
20
|
In this guide, you'll learn how to manage property labels in the Medusa Admin. |
|
21
|
|
|
22
|
## What is a Property Label? |
|
23
|
|
|
24
|
Property labels let you customize the names of columns shown in the Medusa Admin's [configurable table views](../../tips/table-views/page.mdx). When the dashboard builds a data table, it uses your property labels as the column names, so you can use the terminology that fits your store. |
|
25
|
|
|
26
|
For example, you can label an order's `display_id` property as "Order Number" to change the name of that column in the orders table. |
|
27
|
|
|
28
|
Property labels are global, so they apply to all admin users, and each property can have only one label. |
|
29
|
|
|
30
|
--- |
|
31
|
|
|
32
|
## View Property Labels |
|
33
|
|
|
34
|
To view property labels, go to Settings → Property Labels. Here, you can see a table of the data models in your store, such as orders and products. |
|
35
|
|
|
36
|
The table has the following columns: |
|
37
|
|
|
38
|
- Module: the name of the module that the data model belongs to. |
|
39
|
- Model: the data model's name. |
|
40
|
- Property Count: the number of properties the data model has. |
|
41
|
- Has Overrides: whether you've set custom labels for any of the data model's properties. |
|
42
|
|
|
43
|
You can sort the list by module or model to find the data model you're looking for. |
|
44
|
|
|
45
|
--- |
|
46
|
|
|
47
|
## Set Property Labels |
|
48
|
|
|
49
|
To set custom labels for a data model's properties: |
|
50
|
|
|
51
|
1. Go to Settings → Property Labels. |
|
52
|
2. Find the data model whose properties you want to label. |
|
53
|
3. Click the <InlineIcon Icon={EllipsisHorizontal} alt="three-dots" /> icon at the end of the data model's row, then choose Edit. |
|
54
|
4. In the window that opens, you see a table of the data model's properties. Each row has the following fields: |
|
55
|
- Field: the property's name. This field is read-only. |
|
56
|
- Custom Label: the name to show for the property as a column in data tables. |
|
57
|
- Description: an optional description of the property. |
|
58
|
5. For each property you want to rename, enter a value in the Custom Label field. Optionally, enter a Description. |
|
59
|
6. Once you're done, click the Save button. |
|
60
|
|
|
61
|
<Note> |
|
62
|
|
|
63
|
A description requires a custom label. If you enter a description without a custom label, you can't save the changes. |
|
64
|
|
|
65
|
</Note> |
|
66
|
|
|
67
|
After saving, the custom labels appear as the column names for that data model's data tables across the dashboard. |
|
68
|
|
|
69
|
--- |
|
70
|
|
|
71
|
## Remove a Property Label |
|
72
|
|
|
73
|
To remove a custom label: |
|
74
|
|
|
75
|
1. Go to Settings → Property Labels. |
|
76
|
2. Click the <InlineIcon Icon={EllipsisHorizontal} alt="three-dots" /> icon at the end of the data model's row, then choose Edit. |
|
77
|
3. Double click the Custom Label field of the property you want to remove, then erase its value. Optionally, erase the Description field as well. |
|
78
|
4. Once you're done, click the Save button. |
|
79
|
|
|
80
|
The property's column reverts to its default name in data tables. |