gregor.tusar
10/04/2023, 6:18 AMConvertIntermediateToObject
method of PropertyValueConverter
on each request.
I am not sure if this is the correct approach or not.
The second approact that I took was to create an Element Type
document type and added it as a property Block list
in Single block mode
. This is much easier in the Backoffice part, because I don't have to write all custom editor code by myself, but the issue here is that I don't know how to append API data to the model then.
I tried to create new RenderController with the name of the Element Type document, but it is not triggered.
Any help would be appreciated.Anders Bjerner
10/04/2023, 6:54 AMgregor.tusar
10/04/2023, 7:11 AMPublishedContentWrapped
and RenderController
or is this again usable only for actual document type with template?
I was also looking at ViewComponent
and ViewModel
but it is the same problem as with the above.Anders Bjerner
10/04/2023, 7:36 AMgregor.tusar
10/04/2023, 7:54 AMViewComponent
. This way I can avoid building complex Backoffice UI.Anders Bjerner
10/04/2023, 8:00 AMMike Chambers
10/04/2023, 11:15 AMcsharp
if ( {SomeIPublishedContent} as IExtendedComposition is IExtendedComposition extComp)
{
var prop = extComp.STRONGLYTYPEDPROP
}
but I'd probably go for the ViewComponent
for your use case.