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

Mediamanager Item within a RichText field is not working in retrofit mode. #23

Open
justsayantan opened this issue Feb 6, 2017 · 2 comments
Labels

Comments

@justsayantan
Copy link

Mediamanager Item within a RichText field is not working while using retrofit mode. It is always getting failed to map the mediamanager item.
Error Details -

Sdl.Web.Common.DxaException: Unable to map field 'Content' to property of type 'Sdl.Web.Common.Models.RichText'. ---> Sdl.Web.Common.DxaException: No semantic mapping found between Schema 33274 (uuid:9389a8ce-0f19-44ee-9eb6-2d04d0c02c25:ExternalContentLibraryStubSchemamm) and model type 'Sdl.Web.Common.Models.MediaItem'
   at Sdl.Web.Common.Mapping.SemanticSchema.GetModelTypeFromSemanticMapping(Type baseModelType)

As a workaround we have created a subclass and extended the default MediaManagerDistribution model. But need proper fix for that.

@rpannekoek
Copy link
Contributor

rpannekoek commented Mar 31, 2017

Indeed, the MediaManagerDistribution View Model currently doesn't work properly in conjunction with retrofit mode. The problem is that it only has a SemanticEntity annotation for the Core Vocabulary, but in retrofit mode, each CM Schema has its own Vocabulary (named after the Schema's namespace URI). So: an additional SemanticEntity annotation is needed for the MM Stub Schema. Indeed, a work-around for this issue it to create abd register your own subclass which does have the appropriate SemanticEntity annotation.

@rpannekoek rpannekoek added the bug label Mar 31, 2017
@rpannekoek
Copy link
Contributor

Internal Issue ID (for tracking purposes): CRQ-13306

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

No branches or pull requests

2 participants