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