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

page status

2 posts, 0 answered
  1. sam
    sam avatar
    3 posts
    Registered:
    10 Apr 2007
    06 Apr 2008
    Link to this post
    Hi,

    In the dev manual a page ca have 5 status's:

    Draft
    For Approval
    Declined
    Approved
    Published

    But via the api using page.status I can only see:

    New
    Archived
    Published

    How do I programmatically determine all of the 5 ? :

    Draft
    For Approval
    Declined
    Approved
    Published
  2. Sonya
    Sonya avatar
    231 posts
    Registered:
    24 Sep 2012
    08 Apr 2008
    Link to this post
    Hello sam,

    The status of a content item (Telerik.Cms.Engine) is the following:
    public enum ContentStatus 
         Draft, 
         Published, 
         Archived 

    However, when Workflow (Telerik.Workflow) is enabled for this item, the status becomes one of the following:
    public enum ApprovalStatus : byte 
        None, 
        Draft, 
        ForApproval, 
        Declined, 
        Approved, 
        Published, 
        Archived 
     

    Hope this helps.

    Greetings,
    Sonya
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
2 posts, 0 answered