|
Home > Archive > Microsoft Content Management Server > June 2006 > Posting Archive
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]
|
|
| fmakopo@investec.co.za 2006-06-21, 1:18 pm |
| I am having problem with my CMS website. All i want to do is to archive
all the posting information after the expiry date or email the posting
information after the expiry date
| |
| Stefan [MSFT] 2006-06-21, 7:17 pm |
| Hi,
what you could do is to run a script on a scheduled basis that enumerates
all postings and checks if they are expired.
Then move them to an archive channel and export this channel using SDAPI.
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
Check out the new book as well: Advanced MCMS development:
http://tinyurl.com/8ugwj
----------------------
<fmakopo@investec.co.za> wrote in message
news:1150894878.212106.54740@m73g2000cwd.googlegroups.com...
>I am having problem with my CMS website. All i want to do is to archive
> all the posting information after the expiry date or email the posting
> information after the expiry date
>
| |
| fmakopo@investec.co.za 2006-06-22, 1:22 pm |
| Hi Stefan
I am new to cms can you please explain more of what must i do.
If possible can you give an example of what must i do or source code.
Stefan [MSFT] wrote:[vbcol=seagreen]
> Hi,
>
> what you could do is to run a script on a scheduled basis that enumerates
> all postings and checks if they are expired.
> Then move them to an archive channel and export this channel using SDAPI.
>
> 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
> Check out the new book as well: Advanced MCMS development:
> http://tinyurl.com/8ugwj
> ----------------------
>
>
> <fmakopo@investec.co.za> wrote in message
> news:1150894878.212106.54740@m73g2000cwd.googlegroups.com...
| |
| Stefan [MSFT] 2006-06-22, 1:22 pm |
| Hi,
you need to write a console application that uses the CmsApplicationContext
and iterates through all channels and postings in the site and checks the
state property of the posting.
If the state is PublishingState.Expired the application needs to use the
MoveTo method of the posting to move the item to a dedicated channel.
Finally run an SDAPI script (sample are in the MCMS documentation) to export
the channel into an SDO file.
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
Check out the new book as well: Advanced MCMS development:
http://tinyurl.com/8ugwj
----------------------
<fmakopo@investec.co.za> wrote in message
news:1150989996.098439.308860@g10g2000cwb.googlegroups.com...
> Hi Stefan
> I am new to cms can you please explain more of what must i do.
> If possible can you give an example of what must i do or source code.
> Stefan [MSFT] wrote:
>
|
|
|
|
|