Skip to main content

Creating Detail Pages

Setup

Info

This guide assumes you have a CmsPlugin with an Article entity, as covered in the Extending the Dashboard: Plugin Setup guide.

Detail pages can be created for any entity which has been exposed via the Admin API. Following the above setup of the CmsPlugin will result in the following additions to your API schema:

Graphql

Simple Detail Pages

Now let's create a detail page so we can start adding articles.

We'll begin with the simplest approach, where the form will be auto-generated for us based on the GraphQL schema using the DetailPage component. This is useful for quickly getting started, but you can also to customize the form later on.

Create a new file called article-detail.tsx in the ./src/plugins/cms/dashboard directory:

src/plugins/cms/dashboard/article-detail.tsx

Now we can register this route in our index.tsx file:

src/plugins/cms/dashboard/index.tsx

You should now be able to click on the "New article" button in the list view, and see the detail page:

Detail Page

Congratulations! You can now add, edit and delete articles in the dashboard.

List view with entries

Customizing the detail page

The auto-generated DetailPage is a great way to get started and quickly be able to interact with your entities. But let's now see how we can fully customize the layout and form fields.

src/plugins/cms/dashboard/article-detail.tsx

In the above example, we have:

Was this chapter helpful?
Report Issue
Edited Feb 23, 2026ยทEdit this page