Microsoft Content Management Server - problem 1 after migration

This is Interesting: Free IT Magazines  
Home > Archive > Microsoft Content Management Server > July 2007 > problem 1 after migration





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 problem 1 after migration
Wiper

2007-07-17, 7:18 am

Hi

After a succesfull migration (running mixed mode) the authors now - in
different placeholders - are allowed: to insert local image from local or
networked computer.

I only wan't to allow insert shared image from the ressource gallery

How can I change this in the production enviroment ?


Stefan Goßner [MSFT]

2007-07-17, 1:18 pm

Hi Wiper,

you need to change the setting of the placeholder defintiion to deny access
to local resources.
That requires VS.NET and the MCMS developer tools to be installed.
Alternativly you can write a PAPI script that does this change - but it
requires some development.

Cheers,
Stefan

"Wiper" <hubba07@gmail.com> wrote in message
news:O6EiymGyHHA.5980@TK2MSFTNGP04.phx.gbl...
> Hi
>
> After a succesfull migration (running mixed mode) the authors now - in
> different placeholders - are allowed: to insert local image from local or
> networked computer.
>
> I only wan't to allow insert shared image from the ressource gallery
>
> How can I change this in the production enviroment ?
>
>



Wiper

2007-07-17, 1:18 pm

Hi Stefan

> Alternativly you can write a PAPI script that does this change - but it

requires some development.<

Can you ellaborate this - or give and example on this PAPI Script?




Stefan Goßner [MSFT]

2007-07-17, 1:18 pm

Hi Wiper,

the PAPI script would need to update the MustUseResourceGallery property of
the placeholder definition in the template.
Afterwards you would need to submit the template to check in the change.

Something like this:

CmsApplicationContext cmsContext = new CmsApplicationContext();
cmsContext. AuthenticateAsCurrentUser(PublishingMode
.Update);

Template tpl = cmsContext.Searches.GetByPath("PathToTemplate");
ImagePlaceholderDefinition ipd =
tpl.PlaceholderDefinitions["NameOfYourImagePlaceholderDefinition"];
ipd.MustUseResourceGallery = true;
tpl.Submit();
cmsContext.CommitAll();

Cheers,
Stefan


"Wiper" <hubba07@gmail.com> wrote in message
news:eZ6QBkHyHHA.1204@TK2MSFTNGP03.phx.gbl...
> Hi Stefan
>
> requires some development.<
>
> Can you ellaborate this - or give and example on this PAPI Script?
>
>
>
>



Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com