Is there a way in OC to get the html of a content item using a specific displayType in a controller?
I tried this:
var productShape = await _contentItemDisplayManager.BuildDisplayAsync(product, this, "Detail");
var productHtml = await displayHelper.ShapeExecuteAsync(productShape);
This works, but productHtml also includes the theme html, which I do not want. Any ideas?
just use the shape you created
.