View Counts in Search Results not working?

Last post 08-11-2008 6:07 PM by mabster. 2 replies.
Page 1 of 1 (3 items)
  • View Counts in Search Results not working?

    08-06-2008 9:21 PM

    Hey guys,

    I use $post.Views in my index.view file to show how many times a post has been viewed.

    However, this is always showing 0 when I look at a list of search results.

    Is $post.Views property not populated in search results? If not, is there some way I can exclude that specifically for search results in my theme?

    Cheers,
    Matt

  • Re: View Counts in Search Results not working?

    08-11-2008 9:38 AM

    Hi

    Have you tried wrapping it in something like...

    #if($where != "search")

    $post.Views

    #end

    Community Server hosting. Graffiti CMS hosting. Installation, configuration, maintenance, customisation and support of Telligent's Community Server and Graffiti CMS products in Europe, Singapore and Australia.

    http://thecommunityhost.co.uk
  • Re: View Counts in Search Results not working?

    08-11-2008 6:07 PM

    That's what I'll have to do, but I was hoping that someone would confirm that $post.Views not working is a bug; or if it's by design, what the reasoning behind the design is.

Page 1 of 1 (3 items)