Dynamic Module - image library

Posted by Community Admin on 04-Aug-2018 15:45

Dynamic Module - image library

All Replies

Posted by Community Admin on 31-Mar-2015 00:00
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");
Posted by Community Admin on 03-Apr-2015 00:00
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
 
Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested is added or when a bug fixed? Explore the Telerik Sitefinity CMS Ideas&Feedback Portal and vote to affect the priority of the items
 
This thread is closed