07-17-07 06: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?
>
>
>
>
[ Post a follow-up to this message ]
|