SaaS CMS has officially launched! Learn more now.

How to use AsyncPartialContentComponent?


The Foundation project contains MediaController which implements the AsyncPartialContentComponent.

My question is: How to use that controller for rendering data? For example, how to tell renderer to use ImageMediaData from MediaController?

I have not found any example in the Foundation project. ImageMediaData does not seem to use MediaController logic for rendering.

I also tried to register that controller in the IViewTemplateModelRegistrator, but I'm not sure how since registrator requires path for a view while MediaController specifies it in the logic.

Link to code:

Edited, Jul 13, 2022 12:44

The MediaController will be invoked when you drop something inheriting from MediaData into e.g. a ContentArea. Unless there is a more specific AsyncPartialContentComponent available for the content type.

Edited, Jul 13, 2022 16:02

And ContentArea is the answer, thank you a lot, Johan!

Edited, Jul 14, 2022 7:59
This topic was created over six months ago and has been resolved. If you have a similar question, please create a new topic and refer to this one.
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.