From 23e15388fd5df59c83672f993788280d3ee00101 Mon Sep 17 00:00:00 2001 From: arditdomi <32884230+arditdomi@users.noreply.github.com> Date: Fri, 12 Jun 2020 16:45:17 +0100 Subject: [PATCH] [ACA-3450] Add missing documentation about parentRoute (#1485) --- docs/extending/routes.md | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/docs/extending/routes.md b/docs/extending/routes.md index 24f752e39..86add22fc 100644 --- a/docs/extending/routes.md +++ b/docs/extending/routes.md @@ -17,7 +17,8 @@ To create a new route, populate the `routes` section with the corresponding entr "id": "plugin1.routes.bin", "path": "ext/bin", "layout": "app.layout.main", - "component": "your.component.id" + "component": "your.component.id", + "parentRoute": "your-parent-route" } ] } @@ -33,6 +34,7 @@ To create a new route, populate the `routes` section with the corresponding entr | layout | The layout [component](/extending/components) to use for the route. | | auth | List of [authentication guards](#authentication-guards). Defaults to `[ "app.auth" ]`. | | data | Custom property bag to carry with the route. | +| parentRoute | The path that the route will become child of | Use the `app.layout.main` value for the `layout` property to get the default application layout, with header, navigation sidebar and main content area. @@ -58,7 +60,8 @@ You can define the full route schema like in the next example: "auth": ["app.auth"], "data": { "title": "Custom Trashcan" - } + }, + "parentRoute": "your-parent-route" } ] }