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).
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?
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.
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?
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
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
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
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
is working on a reply...