+1-888-365-2779
Try Now
More in this section

Forums / Suggestions / Batch Approval/Publish in Documents/Images Module

Batch Approval/Publish in Documents/Images Module

8 posts, 1 answered
  1. michael
    michael avatar
    15 posts
    Registered:
    22 Jan 2009
    07 Jul 2009
    Link to this post
    One thing I'd love to see in Sitefinity is the ability to batch send-for-approval/approve/publish library items in the Documents/Images module. I'm about to upload another batch of content into there, which I'll need to approve/publish one at a time.

    Think this is something you could work in? The pages module already works this way.

    Thanks, 

    Mike
  2. Georgi
    Georgi avatar
    3583 posts
    Registered:
    20 Sep 2016
    09 Jul 2009
    Link to this post
    Hi Michael,

    We will add this as a feature request. Generally, this is possible to be done with the API. You have to get all items in a list, and push each of them through all the life cycles until it reaches the desired one. Here is an example with a news item, but it will be the same for library items as well (both items have are IContent items) - By-pass workflow.

    Sincerely yours,
    Georgi
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.
    Answered
  3. Connections Academy Developer
    Connections Academy Developer avatar
    151 posts
    Registered:
    04 May 2005
    24 Mar 2010
    Link to this post
    Has this been added for Sitefinity 4.0, or 3.7 SP3? I just nearly gave myself carpal tunnel syndrome approving 200 images uploaded through a zip file.
  4. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    30 Sep 2016
    24 Mar 2010
    Link to this post
    Hello Connections Academy Developer,

    The  Images and Documents module cannot work properly with Workflow enabled. Also the files are binary objects saved to the database and using the workflow will increase your database significantly. The module will fully support workflow from Sitefinity 4.0.

    Greetings,
    Ivan Dimitrov
    the Telerik team

    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
  5. Connections Academy Developer
    Connections Academy Developer avatar
    151 posts
    Registered:
    04 May 2005
    24 Mar 2010
    Link to this post
    I appreciate the prompt response Ivan, however I think we're talking about different Sitefinity features.

    We've had workflow enabled for Images and Documents for a year now and it works fine; I don't know what you mean saying it cannot work properly. Maybe you misunderstood me, and you're talking about file history? 

    My only problem is that I can't batch-approve images the same way I can batch-approve pages. 

    Thanks,

    Michael Snyder

  6. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    30 Sep 2016
    24 Mar 2010
    Link to this post
    Hello Connections Academy Developer,

    My only problem is that I can't batch-approve images the same way I can batch-approve pages.

    Pages are ICmsPage objects. Items in Image and Documents library are IContent objects. Both uses different workflow classes. You could create a custom view that inherits LibraryItemBatchEdit and implement workflow buttons for each item, so that you can move between the Workflow Status.

    sample code

    WorkflowInstance instance = workflowItems.GetWorkflow();
           if (instance != null)
           {
               GlobalPermission perm;
               ContentWorkflow workflow = (ContentWorkflow)instance.Activity;
               switch (workflow.ApprovalStatus)
               {
                   case ApprovalStatus.Draft:
                     
                       break;
                   case ApprovalStatus.ForApproval:
                     
                       break;
                   case ApprovalStatus.Approved:
                      
                       break;
               }
               return workflow.ApprovalStatus;
           }


    Below are two articles that describes how to use Workflow API


    Greetings,
    Ivan Dimitrov
    the Telerik team

    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
  7. Connections Academy Developer
    Connections Academy Developer avatar
    151 posts
    Registered:
    04 May 2005
    24 Mar 2010
    Link to this post
    Thanks Ivan, I'll give that a shot.

    Will this be added to 4.0? Georgi said it would be listed as a feature request, but it hasn't shown up so far.

    Thanks,

    Michael Snyder
  8. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    30 Sep 2016
    25 Mar 2010
    Link to this post
    Hi Connections Academy Developer,

    We have added this in our list and we will consider it when start working on workflow implementation for modules.

    Regards,
    Ivan Dimitrov
    the Telerik team

    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
Register for webinar
8 posts, 1 answered