More in this section

Forums / Developing with Sitefinity / Adding View_Count in other generic modules

Adding View_Count in other generic modules

2 posts, 0 answered
  1. MNP
    MNP avatar
    79 posts
    Registered:
    23 Apr 2008
    03 Feb 2010
    Link to this post
    How would one go about adding the View_Count meta key to other generic modules besides Blogs.

    I know how to set/get meta keys, but just wondering if the updating of the View_Count metakey is done on the control level? So for example if I wanted View_Count on wiki modules, I would have to modify a WikiViewSingleItem view and add it in an onLoad event?

    Is there an easier way instead of adding it on the controls?

    Thanks

    -Matt
  2. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    12 Sep 2017
    03 Feb 2010
    Link to this post
    Hello Matt,

    You need to create  custom control that inherits from BlogPost ( or each other ContentView based control). You have to override SetSingleItemContent method from where you have access to the item being watched.

    Greetings,
    Ivan Dimitrov
    the Telerik team

    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
    Follow the status of features or bugs in PITS and vote for them to affect their priority.
2 posts, 0 answered