More in this section
Forums / Designing with Sitefinity / Locked news - detection

Locked news - detection

The forums are in read-only mode. In case that you want to directly contact the Progress Sitefinity team use the support center. In our Google Plus group you can find more than one thousand Sitefinity developers discussing different topics. For the Stack Overflow threads don’t forget to use the “Sitefinity” tag.
2 posts, 0 answered
  1. Petr
    Petr avatar
    34 posts
    03 Jan 2011
    20 May 2011
    Link to this post

    due to fact, that it is not possible to filter by Status in News list, I've added new metafield into specification. I've mapped workflow, but I have problem how to detect/set for this new "status" (in original status is correctly stored "Locked by...") in case of locking page. Where can I find trigger for this event?

    Thanks for help

  2. Radoslav Georgiev
    Radoslav Georgiev avatar
    3370 posts
    01 Feb 2016
    25 May 2011
    Link to this post
    Hello Petr,

    You can subscribe to the click event of the publish button in the NewsItemPreview.ascx control template. Now when this button is clicked you can get the item set the value of the new meta field to the workflow status. See attached sample with author metafield.

    Radoslav Georgiev
    the Telerik team
    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 Public Issue Tracking system and vote to affect the priority of the items
2 posts, 0 answered