Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Alexadar 17 posts 37 karma points
    Nov 22, 2011 @ 12:38
    Alexadar
    0

    Simplest way to update a counter

    What is simplest way to update a counter for a each page what inherits masterpage?

    I guess i should add a sort of magic macro to the masterpage template, but i dont know what macro should be.

    Also i suppose i should not add ViewCounter datatype to the page for it.

  • Robert Foster 459 posts 1820 karma points MVP 3x admin c-trib
    Nov 22, 2011 @ 12:45
    Robert Foster
    0

    Hi,

    I listed the available methods for ViewCounter in your first topic -

    http://our.umbraco.org/projects/website-utilities/refactored-content-views/developer-questions/26080-List-of-most-visited-pages

    You can call the ViewCount.Increment(int nodeId, category) from any XSLT or Razor macro...

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies