Commit ebfcaad
committed
Merge branch 'maintenance/ViewModels-deprecate-placeholders' into develop
The `List` content type is implicitly created as a container for nested topics in the topic graph, and is not expected to mapped directly. Collections on view models that correspond to a nested topic `List` are automatically mapped to its children, without mapping the `List` itself.
Instead, the `List` content type was exclusively introduced to support the OnTopic Editor's `QueryableAttributeDescriptor.BaseTopic` property, so that a nested topic list could be referenced as the source for e.g. a `TopicListAttributeDescriptor`, thus allowing the editor to display dropdown boxes.
This functionality can now be better served by the new `[MapAs()]` attribute (#41). This not only eliminates the need for this placeholder, but also allows binding to any arbitrary content type, even if there's not a view model associated with it. This will be implemented in OnTopic Editor 5.1.0, as tracked in OnTopicCMS/OnTopic-Editor-AspNetCore#29.
In anticipation of that, this placeholder is being marked as obsolete.2 files changed
Lines changed: 15 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
50 | 50 | | |
51 | 51 | | |
52 | 52 | | |
53 | | - | |
54 | 53 | | |
55 | 54 | | |
56 | 55 | | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
57 | 65 | | |
58 | 66 | | |
59 | 67 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| 6 | + | |
6 | 7 | | |
7 | 8 | | |
8 | 9 | | |
| |||
26 | 27 | | |
27 | 28 | | |
28 | 29 | | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
29 | 35 | | |
30 | 36 | | |
31 | 37 | | |
| |||
0 commit comments