Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

await DisplayAsync(Model.Content.AbstractContent) render nothing in summary view #17005

Open
effapp opened this issue Nov 13, 2024 · 6 comments

Comments

@effapp
Copy link

effapp commented Nov 13, 2024

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

@effapp
Copy link
Author

effapp commented Nov 14, 2024

Model.Content.AbstractContent is null in Summary View but is not null in details view like Content-Article.cshtml

@sebastienros
Copy link
Member

How I would understand that happens is:

DisplayAsync(Model.Content.AbstractContent) means the shape named AbstractContent in the zone named Content of the current Model which is a zone holder shape.

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).

@ns8482e
Copy link
Contributor

ns8482e commented Nov 15, 2024

Place it using placement for Summary view

@sebastienros
Copy link
Member

@ns8482e I almost believe you like placement ;)

@effapp
Copy link
Author

effapp commented Nov 15, 2024

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

@effapp
Copy link
Author

effapp commented Nov 15, 2024

Hi @sebastienros ,

Article type:
image

Content-Article.cshtml
image

Content-Article.Summary.cshtml
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants