Skip to content

Commit

Permalink
Fix tree diagram text and description of concepts
Browse files Browse the repository at this point in the history
  • Loading branch information
stevepiercy committed Feb 26, 2024
1 parent bcb5572 commit c44c6a9
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions docs/source/configuration/slots.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,16 +29,17 @@ The following tree structure diagram illustrates these concepts.
```text
Slot (`toolbar`)
├── SlotComponent (`edit`)
│   ├── predicates (only appear in `/de/about`)
│   ├── predicates (only appear if the content type is either a `Document` or `News Item`)
│   └── no predicates (default when all predicates return `false`)
│   ├── predicate (only appear in `/de/about`)
│   ├── predicate (only appear if the content type is either a `Document` or `News Item`)
│   └── no predicate (default when all predicates return `false`)
├── SlotComponent (`contents`)
└── SlotComponent (`more`)
```

At the root of the tree, there is a slot named `toolbar`.
It contains three slot components, named `edit`, `contents`, and `more`.
`edit` contains two predicates and a default for when all of its predicates return `false`.
`edit` contains three slot components, two of which have a predicate and a third without a predicate.
When the slots with predicates both return `false`, then the third slot is returned.

Thus, when either the route is `/de/about` or the content type is either a `Document` or `News Item`, then the `edit` slot component would appear in the slot `toolbar`.
It would not display elsewhere.
Expand Down

0 comments on commit c44c6a9

Please sign in to comment.