Microsoft Content Management Server - Review date email function.

This is Interesting: Free IT Magazines  
Home > Archive > Microsoft Content Management Server > October 2005 > Review date email function.





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Review date email function.
tony.collings@gmail.com

2005-10-25, 7:48 am

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

Stefan [MSFT]

2005-10-25, 7:48 am

Hi Tony,

I would suggest to use the following solution:
http://blogs.technet.com/stefan_gos.../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...
> 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
>



tony.collings@gmail.com

2005-10-25, 7:48 am

Any pointers for doing the XML solution ?

Stefan [MSFT]

2005-10-25, 7:48 am

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...
> Any pointers for doing the XML solution ?
>



Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com