Copied to clipboard

Flag this post as spam?

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


  • Craig O'Mahony 364 posts 918 karma points
    Apr 22, 2013 @ 16:48
    Craig O'Mahony
    0

    Change a content node propery when a page is viewed

    Hi,

    Is it possible to change a content node propery when a page is viewed?

    So say for instance I have a property called counter and when a page is viewed i want to increment the value that's currently in counter by one (ultimately I want to change what sort of content is displayed if the page has been viewed a certain amount of times).

    Doable?

    Thanks,

    Craig

  • Jan Skovgaard 11280 posts 23678 karma points MVP 11x admin c-trib
    Apr 26, 2013 @ 01:16
    Jan Skovgaard
    0

    Hi Craig

    I think that should be possible, however I would like to know a bit more about your reason for wanting to do this? It sounds like you want to track hits on a certain page and I'm thinking that you should perhaps just use Google analytics?

    Let me know if I'm way off :)

    /Jan

  • Craig O'Mahony 364 posts 918 karma points
    Apr 26, 2013 @ 11:10
    Craig O'Mahony
    0

    Hi Jan,

    I've just come back from the umbraco level 2 course so I think that I may be able to sort this out myself:)

    In answer to your question it's for a competition page where my customer wants the first 50 visitors to a certain page to see the competition content and anyone after this to see the normal content. The integer that's stored on the content needs to be resettable (!) as they run competitions at regular intervals (but the content page stays the same (its URL appears in magazines)). So using google analytics would indeed show me the amount of visitors but I wouldn't be able to work out what content to show them.

    Thanks,

    Craig

  • Jan Skovgaard 11280 posts 23678 karma points MVP 11x admin c-trib
    Apr 26, 2013 @ 12:58
    Jan Skovgaard
    0

    Hi Craig

    That sounds really good - In order to be able to figure out what content to show based on user behaviour and actions it might be worth checking out the spindoctor package...must admit I have not tried it out myself yet but if I remember correctly it has some of this logic...It might be worth checking it out perhaps?

    http://our.umbraco.org//projects/backoffice-extensions/spindoctor-free-edition

    Happy coding! :)

    /Jan

Please Sign in or register to post replies

Write your reply to:

Draft