Replies: 9 comments
-
Model.Content.AbstractContent is null in Summary View but is not null in details view like Content-Article.cshtml |
Beta Was this translation helpful? Give feedback.
-
How I would understand that happens is:
So it looks like this shape is not created for the Summary display mode. can you describe what your Article content type is made of, and how you create the summary shapes of your articles, or where you are trying to "see" them if the view already exists? (the admin uses SummaryAdmin for instance). |
Beta Was this translation helpful? Give feedback.
-
Place it using placement for Summary view |
Beta Was this translation helpful? Give feedback.
-
@ns8482e I almost believe you like placement ;) |
Beta Was this translation helpful? Give feedback.
-
Hi @sebastienros , I think that since "DisplayAsync(Model.Content.AbstractContent)" can be displayed in details view , it should be displayed in summary view. note: I use oc 1.8.4 |
Beta Was this translation helpful? Give feedback.
-
Hi @sebastienros , |
Beta Was this translation helpful? Give feedback.
-
Creation of So if there is need to render flow part detail into summary view then, it requires placement definition explicitly. |
Beta Was this translation helpful? Give feedback.
-
@ns8482e I realized that after your comment actually. And I think that's totally ok in term of design, a summary should not display everything like in Details. But it's also ok because there is a way to change that: Placement!!! Let's try to get the correct placement syntax then: {
"FlowPart": [
{
"place": "Content",
// "differentiator": "AbstractContent",
"contentType": "Article",
"displayType": "Summary"
}
]
} If not this, it should be close. Now reflecting on it, I think we should have the list of all available shape types for each part/field (we probably have it for fields, I can vaguely remember creating this list once). And explain in placement how to use this list based on the custom part names, how to build the differentiator ... (which I also feel like I documented at some point).
|
Beta Was this translation helpful? Give feedback.
-
Also worth mentioning that the |
Beta Was this translation helpful? Give feedback.
-
In details view Content-Article.cshtml, "@await DisplayAsync(Model.Content.AbstractContent)" can render correctly but in summary view Content-Article.Summary.cshtml "@await DisplayAsync(Model.Content.AbstractContent)" render nothing.
Note: Model.Content.AbstractContent is FlowPart
Beta Was this translation helpful? Give feedback.
All reactions