More in this section

Forums / Developing with Sitefinity / Dynamic Module - image library

Dynamic Module - image library

2 posts, 0 answered
  1. Andy
    Andy avatar
    7 posts
    03 Oct 2012
    31 Mar 2015
    Link to this post
    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");
  2. Atanas Valchev
    Atanas Valchev avatar
    414 posts
    04 Jan 2016
    03 Apr 2015
    Link to this post

    Would it be possible to share the full details of your scenario, please? Is the dynamic item created from the backend or frontend?

    Atanas Valchev
    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
2 posts, 0 answered