popular-magentaP
Refine3y ago
8 replies
popular-magenta

Add a custom nested menu item with position defined

export const resources: IResourceItem[] = [
{
name: "users",
list: "/users",
identifier: "users",
},
{
name: "patient",
identifier: "patient_parent",
meta: {
label: "Patients",
}
},
{
name: "patient",
list: "/patient",
create: "/patient/create",
identifier: "patient_list",
meta: {
label: "Patient List",
parent: "patient_parent",
},
}
];

This are my resources, I know that Sider will automatically create a list of items like this structure. I do have a custom Sider created using Swizzle. I also know that Sider won't automatically create a "create" menu item in the Sider, only "list" are being automatically created.

So I want to create a separated menu item called "Create Patient", path is "/patient/create", how do I do that? Also correct me if I have any information wrong
Was this page helpful?