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

Forums / Developing with Sitefinity / Public events registration control with "ForApproval" status

Public events registration control with "ForApproval" status

3 posts, 1 answered
  1. Min
    Min avatar
    10 posts
    Registered:
    21 Dec 2010
    31 Dec 2010
    Link to this post
    Hi,

    First of all I would like to say thank you to Peter and Teddy from Sitefinity.
    Finally public event registration control is done. :)
    But now I am stuck at event status.  I want event status to be marked as "ForApproval" after user submitted an event through public event registration control.

    I can only choose three methods (Archive, Draft and Published) when I set the status of event using below code during event creation process.
    manager.Content.SaveContent(content, ContentStatus.Published);

    I've already turned on the "WorkFlow".  But I really don't know who to integrate that workflow with event creation.
    Could you please help?

    Regards,
    Min
  2. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    25 Nov 2016
    31 Dec 2010
    Link to this post
    Hi Min,

    You can have ForApproval status only if you have Workflow enabled for the provider you use. You can take a look at this blog post - Schedule content items publishing with workflow enabled which shows how to work with the workflow prorammatically and even move the content item between the workflow steps.

    Best wishes,
    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
    Answered
  3. Min
    Min avatar
    10 posts
    Registered:
    21 Dec 2010
    13 Jan 2011
    Link to this post
    Thank a lot Ivan!
Register for webinar
3 posts, 1 answered