robust-apricot
robust-apricot•2y ago

Can I display a list of posts within a category?

In this format: categories/1/posts I see only option: categories/posts https://refine.dev/docs/advanced-tutorials/multi-level-menu
Multi Level Menu | refine
This document is related to how to create a multi-level menu for refine applications.
1 Reply
quickest-silver
quickest-silver•2y ago
Hey @a77ay, with the current <Sider/> component its not possible to list the response of a query because its only rendering the resources array of <Refine /> in a tree view. If you want to add this functionality you will need to customize the default sider or create a new one. Here's a documentation for customizing and re-creating the <Sider/> https://refine.dev/docs/api-reference/antd/customization/antd-custom-sider/#recreating-the-default-sider-menu I highly recommend you to try our new CLI tool and the swizzle command. It will export the <Sider /> component with all of its files into your project, ready to customize and extend the functionality. 🚀 🚀 If you don't have @pankod/refine-cli in your project, you can check this doc on how to add it manually (really simple 😅) https://refine.dev/docs/packages/documentation/cli/#how-to-add-to-an-existing-project Btw, you need to select Layout in the swizzle command to start customizing the Sider 🚀