Microsoft Content Management Server - Re: Missing Template Association after copying Channel in Site Man

This is Interesting: Free IT Magazines  
Home > Archive > Microsoft Content Management Server > January 2007 > Re: Missing Template Association after copying Channel in Site Man





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 Re: Missing Template Association after copying Channel in Site Man
Stefan Goßner [MSFT]

2007-01-26, 7:17 am

Hi Rich,

the basic script would look like this:

static private void CollectChannel(Channel channel)
{
foreach (Posting po in channel.Postings)
{
if (po.CanApprove)
{
po.Approve();
}
// second approval in case of moderator approval required
if (po.CanApprove)
{
po.Approve();
}
}

foreach (Channel ch in channel.Channels)
{
CollectChannel(ch);
}
}

Channel channel = ...start channel for the change...;
CollectChannel(channel,wXml);

Cheers,
Stefan


"Rich" <Rich@discussions.microsoft.com> wrote in message
news:8302CDCC-BDDC-49F9-B554-6AB125EC93C7@microsoft.com...[vbcol=seagreen]
> Stefan -
>
> Thanks. I will look into that. Is there a location or source that I can
> look at to get an idea of what methods to invoke. I am fairly new to MCMS
> and have not really had a chance to delve deep into the internals yet.
>
> Thanks again
> Rich
>
> "Stefan Goßner [MSFT]" wrote:
>


Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com