| Author |
Message |
Guest
|
Posted:
Tue Oct 25, 2005 8:51 am Post subject:
Review date email function. |
|
|
Morning people,
Don't know if you can help out on this one. I'm writing a function into
our CMS system to email users when the review date ( a value currently
stored in a custom property of the page, and edited when an author
switches to edit mode ), is greater than 6 months.
Currently it's written as a control that executes on PageLoad, however
I naturally don't want it to execute everytime, since this would result
in an email everytime the page is refreshed until the review date is
changed ( on second thoughts... maybe not a bad idea *evil grin* )
I need to set a flag for the page to say weather the author has been
emailed or not.
Several options popped into my head.
1) Custom Property with a boolean value. Problems here mean taking the
page out of approval, editing the Custom Property and then re-approving
the page automatically.
2) An SQL database. Seems a bit extravagant though, it's only going to
hold URL information and a boolean value.
3) Option 3, the preferred option. An editable XML file stored
somewhere on the server. This has several advantages. Nice and simple
to hack if there is a problem, I can run reports from it, and if at a
later point decide to go with option 2, import it into SQL.
However I have ZERO experience of writing #C.NET code for this sort of
thing. Anyone got any pointers for writing code to write an XML dataset
and then read it back in and edit it ?
Anyone know of any useful articles on the Internet ?
Any pointers would be greatly received.
Or generally if you think my idea is pants let me know a better one :-D |
|
| Back to top |
|
 |
Stefan [MSFT]
Guest
|
Posted:
Tue Oct 25, 2005 12:50 pm Post subject:
Re: Review date email function. |
|
|
Hi Tony,
I would suggest to use the following solution:
http://blogs.technet.com/stefan_gossner/archive/2005/05/09/404650.aspx
Cheers,
Stefan
--
This posting is provided "AS IS" with no warranties, and confers no rights
New to MCMS?
Check out this book: Building Websites Using MCMS: http://tinyurl.com/6zj44
----------------------
<tony.collings@gmail.com> wrote in message
news:1130229881.138445.233890@g44g2000cwa.googlegroups.com...
| Quote: | Morning people,
Don't know if you can help out on this one. I'm writing a function into
our CMS system to email users when the review date ( a value currently
stored in a custom property of the page, and edited when an author
switches to edit mode ), is greater than 6 months.
Currently it's written as a control that executes on PageLoad, however
I naturally don't want it to execute everytime, since this would result
in an email everytime the page is refreshed until the review date is
changed ( on second thoughts... maybe not a bad idea *evil grin* )
I need to set a flag for the page to say weather the author has been
emailed or not.
Several options popped into my head.
1) Custom Property with a boolean value. Problems here mean taking the
page out of approval, editing the Custom Property and then re-approving
the page automatically.
2) An SQL database. Seems a bit extravagant though, it's only going to
hold URL information and a boolean value.
3) Option 3, the preferred option. An editable XML file stored
somewhere on the server. This has several advantages. Nice and simple
to hack if there is a problem, I can run reports from it, and if at a
later point decide to go with option 2, import it into SQL.
However I have ZERO experience of writing #C.NET code for this sort of
thing. Anyone got any pointers for writing code to write an XML dataset
and then read it back in and edit it ?
Anyone know of any useful articles on the Internet ?
Any pointers would be greatly received.
Or generally if you think my idea is pants let me know a better one :-D
|
|
|
| Back to top |
|
 |
Guest
|
Posted:
Tue Oct 25, 2005 12:50 pm Post subject:
Re: Review date email function. |
|
|
| Any pointers for doing the XML solution ? |
|
| Back to top |
|
 |
Stefan [MSFT]
Guest
|
Posted:
Tue Oct 25, 2005 12:50 pm Post subject:
Re: Review date email function. |
|
|
Hi Tony,
for this you should post to an ASP.NET related newsgroup as this is not
really a MCMS related question.
Cheers,
Stefan
--
This posting is provided "AS IS" with no warranties, and confers no rights
New to MCMS?
Check out this book: Building Websites Using MCMS: http://tinyurl.com/6zj44
----------------------
<tony.collings@gmail.com> wrote in message
news:1130234607.563632.327610@g44g2000cwa.googlegroups.com...
| Quote: | Any pointers for doing the XML solution ?
|
|
|
| Back to top |
|
 |
|
|
|
|