You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat: allows excluding entities from the nav sidebar / dashboard without disabling its routes (#9897)
### What?
Previously, the `admin.group` property on `collection` / `global`
configs allowed for a custom group and the `admin.hidden` property would
not only hide the entity from the nav sidebar / dashboard but also
disable its routes.
### Why?
There was not a simple way to hide an entity from the nav sidebar /
dashboard but still keep the entities routes.
### How?
Now - we've added the `false` type to the `admin.group` field to account
for this.
Passing `false` to `admin.group` will hide the entity from the sidebar
nav and dashboard but keep the routes available to navigate.
I.e
```
admin: {
group: false,
},
```
|**`group`**| Text used as a label for grouping Collection and Global links together in the navigation. |
31
-
|**`hidden`**| Set to true or a function, called with the current user, returning true to exclude this Collection from navigation and admin routing. |
32
-
|**`hooks`**| Admin-specific hooks for this Collection. [More details](../hooks/collections). |
33
-
|**`useAsTitle`**| Specify a top-level field to use for a document title throughout the Admin Panel. If no field is defined, the ID of the document is used as the title. A field with `virtual: true` cannot be used as the title. |
|**`group`**| Text or localization object used to group Collection and Global links in the admin navigation. Set to `false` to hide the link from the navigation while keeping its routes accessible.|
31
+
|**`hidden`**| Set to true or a function, called with the current user, returning true to exclude this Collection from navigation and admin routing. |
32
+
|**`hooks`**| Admin-specific hooks for this Collection. [More details](../hooks/collections). |
33
+
|**`useAsTitle`**| Specify a top-level field to use for a document title throughout the Admin Panel. If no field is defined, the ID of the document is used as the title. A field with `virtual: true` cannot be used as the title. |
34
34
|**`description`**| Text to display below the Collection label in the List View to give editors more information. Alternatively, you can use the `admin.components.Description` to render a React component. [More details](#custom-components). |
35
-
|**`defaultColumns`**| Array of field names that correspond to which columns to show by default in this Collection's List View. |
36
-
|**`hideAPIURL`**| Hides the "API URL" meta field while editing documents within this Collection. |
37
-
|**`enableRichTextLink`**| The [Rich Text](../fields/rich-text) field features a `Link` element which allows for users to automatically reference related documents within their rich text. Set to `true` by default. |
38
-
|**`enableRichTextRelationship`**| The [Rich Text](../fields/rich-text) field features a `Relationship` element which allows for users to automatically reference related documents within their rich text. Set to `true` by default. |
39
-
|**`meta`**| Page metadata overrides to apply to this Collection within the Admin Panel. [More details](./metadata). |
40
-
|**`preview`**| Function to generate preview URLs within the Admin Panel that can point to your app. [More details](#preview). |
41
-
|**`livePreview`**| Enable real-time editing for instant visual feedback of your front-end application. [More details](../live-preview/overview). |
35
+
|**`defaultColumns`**| Array of field names that correspond to which columns to show by default in this Collection's List View. |
36
+
|**`hideAPIURL`**| Hides the "API URL" meta field while editing documents within this Collection. |
37
+
|**`enableRichTextLink`**| The [Rich Text](../fields/rich-text) field features a `Link` element which allows for users to automatically reference related documents within their rich text. Set to `true` by default. |
38
+
|**`enableRichTextRelationship`**| The [Rich Text](../fields/rich-text) field features a `Relationship` element which allows for users to automatically reference related documents within their rich text. Set to `true` by default. |
39
+
|**`meta`**| Page metadata overrides to apply to this Collection within the Admin Panel. [More details](./metadata). |
40
+
|**`preview`**| Function to generate preview URLs within the Admin Panel that can point to your app. [More details](#preview). |
41
+
|**`livePreview`**| Enable real-time editing for instant visual feedback of your front-end application. [More details](../live-preview/overview). |
42
42
|**`components`**| Swap in your own React components to be used within this Collection. [More details](#custom-components). |
43
-
|**`listSearchableFields`**| Specify which fields should be searched in the List search view. [More details](#list-searchable-fields). |
44
-
|**`pagination`**| Set pagination-specific options for this Collection. [More details](#pagination). |
45
-
|**`baseListFilter`**| You can define a default base filter for this collection's List view, which will be merged into any filters that the user performs. |
43
+
|**`listSearchableFields`**| Specify which fields should be searched in the List search view. [More details](#list-searchable-fields). |
44
+
|**`pagination`**| Set pagination-specific options for this Collection. [More details](#pagination). |
45
+
|**`baseListFilter`**| You can define a default base filter for this collection's List view, which will be merged into any filters that the user performs. |
|**`group`**| Text or localization object used to group Collection and Global links in the admin navigation. Set to `false` to hide the link from the navigation while keeping its routes accessible.|
31
31
|**`hidden`**| Set to true or a function, called with the current user, returning true to exclude this Global from navigation and admin routing. |
32
32
|**`components`**| Swap in your own React components to be used within this Global. [More details](#custom-components). |
33
33
|**`preview`**| Function to generate a preview URL within the Admin Panel for this Global that can point to your app. [More details](#preview). |
0 commit comments