Skip to content
Mattia Roccoberton edited this page May 2, 2023 · 1 revision

The root component is loaded when the main route of the admin is opened.

A redirect to another section can be setup. Sample:

root:
title: MyAdminredirect: posts

The title is used as label in the navbar component.

Or you can define a specific View object. Sample:

root:
title: MyAdminpage: RootPage

And then:

classRootPage < TinyAdmin::Views::DefaultLayoutdeftemplatesuperdoh1{'A test home page'}p{'Some content...'}endendend

Another option can be to define some widgets. Sample:

root:
widgets:
- PopularAuthorsWidget
- LatestPostsWidget

Clone this wiki locally