Dynamic Module - image library
For a dynamic module, is it possible to make an image go into a different library, other than the default library? For example, a Spotlight module, allows user to submit a photo.
If this spotlight is approved, I would want to save the trouble of having someone move that into a Spotlight library.
LibrariesManager imageManager = LibrariesManager.GetManager();
var imageItem = imageManager.GetImages().FirstOrDefault(i => i.Status == Telerik.Sitefinity.GenericContent.Model.ContentLifecycleStatus.Master);
if (imageItem != null)
// This is how we relate an item
spotlightItem.CreateRelation(imageItem, "Image");
Hello,
Would it be possible to share the full details of your scenario, please? Is the dynamic item created from the backend or frontend?
Regards,
Atanas Valchev
Telerik