Uh oh!
There was an error while loading. Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork 0
Root
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: postsThe title is used as label in the navbar component.
Or you can define a specific View object. Sample:
root:
title: MyAdminpage: RootPageAnd then:
classRootPage < TinyAdmin::Views::DefaultLayoutdeftemplatesuperdoh1{'A test home page'}p{'Some content...'}endendendAnother option can be to define some widgets. Sample:
root:
widgets:
- PopularAuthorsWidget
- LatestPostsWidget