Replies: 3 comments 10 replies
-
You can start by rendering the content item to HTML: // Inject IContentManager
var contentItem = await _contentManager.GetAsync(contentItemId);
// IContentItemDisplayManager and IUpdateModelAccessor (or the current controller instance)
var shape = await _contentItemDisplayManager.BuildDisplayAsync(contentItem, _updateModelAccessor.ModelUpdater);
// IDisplayHelper
var htmlContent = await _displayHelper.ShapeExecuteAsync(shape); |
Beta Was this translation helpful? Give feedback.
-
In Content-Article.cshtml, "@await DisplayAsync(Model.Content.AbstractContent)" can render correctly but in Content-Article.Summary.cshtml "@await DisplayAsync(Model.Content.AbstractContent)" render nothing, why? Note: Model.Content.AbstractContent is FlowPart |
Beta Was this translation helpful? Give feedback.
-
As I moved the issue @effapp created to discussions I am discovering this one here too ... So it seems we still don't have a working solution. |
Beta Was this translation helpful? Give feedback.
-
How to get visible text from flow part,please?
Beta Was this translation helpful? Give feedback.
All reactions