Re: Missing Template Association after copying Channel in Site Man
Web Server forum
Back To The Forum Home!Search!Private Messaging System

Web Server Talk Web Server Talk > Web Servers reviews > Microsoft Content Management Server > Re: Missing Template Association after copying Channel in Site Man




  Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

    Re: Missing Template Association after copying Channel in Site Man  
Stefan Goßner [MSFT]


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
01-26-07 12:17 PM

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:
> 







[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 04:24 AM.      Post New Thread    Post A Reply      
  Last Thread   Next Thread Next


Most Popular forums 

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 
Medical and Health forum | Computer Games Reviews | Graphics design forum

Back To The Top
Home | Usercp | Faq | Register