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

Forums / Developing with Sitefinity / Detect if one News, Event or Content are online or waiting

Detect if one News, Event or Content are online or waiting

4 posts, 0 answered
  1. Pierre
    Pierre avatar
    433 posts
    Registered:
    16 Feb 2006
    12 Apr 2009
    Link to this post
    Hi,

    Could someone help me to detecting when one Generic content is online or not. I need add in some metafield when this "News" are Online or not and some counter if possible ( not consuming procesor resources ).
    What add and Where is the better position to add this properties or similar to manage Online feature. Some way could do something when you drag the item to the page and publish but is not clear to me. Some tips or links?

    Thanks, Regards.
  2. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    16 Jun 2017
    13 Apr 2009
    Link to this post
    Hi Pierre,

    I think that you can use Publication_Date metafield and check whether an Content item - News, Events, Blogs has been published or not.

    All the best,
    Ivan Dimitrov
    the Telerik team

    Check out Telerik Trainer , the state of the art learning tool for Telerik products.
  3. Pierre
    Pierre avatar
    433 posts
    Registered:
    16 Feb 2006
    24 Apr 2009
    Link to this post
    Hi Ivan,

    I need to reformulate the question. I have one News module with many post. All news are in some waiting status waiting to be added in one template one by one not using the standard Templates. I will select one and drag to my page to publish. After publish my page I will consider that are online but not before.
    I need at drag the news in the page store some value somewhere, but if this news are canceled delete this value. 
    How i can differentiate these states and keep these status and the waiting time in some metafield value.
    When the status published is added internaly in sf to the news post (Status=1)?, after validate with workflow aprouval true or when the news is added to the page?
    It's a sample of advertising where the clients send the News and we need to store before send the news online and prove-it.

    Thanks for your suggestions
  4. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    16 Jun 2017
    28 Apr 2009
    Link to this post
    Hi Pierre,

    You cannot control the states depending on whether an content is added to a page or not. There is option to search for this content item on all pages but this will reflect to the performance. You can check whether NewsView control has been added to a page. Also, you can access workflow activities using  ExecuteActivity(guid id, string activity Name)

    Sincerely yours,
    Ivan Dimitrov
    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.
Register for webinar
4 posts, 0 answered