Forum Discussion
AlanSharkey
12 years agoCommunity Member
Setting an expiry date for published content
Hi there.
As the title says, I was wondering if there was any way to set an expiry date for published content, which would basically stop users from being able to view the content after a specifi...
GarthYorko-TE
12 years agoCommunity Member
I'll be honest with you guys, I don't actually speak Java, I just found that code with a google search and by sheer brute force I got it to work.
If your varaibles are displaying 0, I think it means that the varialbe has not been adjusted, since those are the initial values.
Check to see that there is a trigger to run the script on the first page start. I've also noticed that sometimes Java script does not run unless it is on a server, so you may want to try it on a server and not your local drive.
Lastly, publish the file I uploaded and see if the behavoir is the same.
Sorry I couldn't be more help, maybe someone who speaks JAVA can help you out.