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

Forums / Developing with Sitefinity / Resetting Blog Post View Count

Resetting Blog Post View Count

3 posts, 1 answered
  1. Paul N
    Paul N avatar
    55 posts
    Registered:
    24 Apr 2010
    07 Dec 2010
    Link to this post
    Hi,

    I was wondering if there is any way to reset the view count on a specific blog post? 
    I had a look at the database, but I don't really know where to look. Doesn't look like it is a field under CmsContentBase. Any ideas would be great.

    Thanks,
    Paul
  2. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    25 Nov 2016
    07 Dec 2010
    Link to this post
    Hi Paul,

    You can do this programmatically by calling SetMetaData("View_Count", 0) for the IContent item you want to modify. The metakeys are stored in sf_GCMetaData table.

    Kind 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
    Answered
  3. Paul N
    Paul N avatar
    55 posts
    Registered:
    24 Apr 2010
    07 Dec 2010
    Link to this post
    Thanks Ivan,

    That's exactly what I wanted.

    Regards,
    Paul
Register for webinar
3 posts, 1 answered