Microsoft KB Archive/302286

= PRB: Cannot Retrieve Image Properties for Placeholders that Are Not in a Switched Template =

Article ID: 302286

Article Last Modified on 2/22/2007

-

APPLIES TO


 * Microsoft Content Management Server 2001 Enterprise Edition
 * NCompass Resolution 4.0

-



This article was previously published under Q302286



SYMPTOMS
When you use the Template Switching feature of Content Management Server (CMS) 2001 or NCompass Resolution 4.0, placeholders on the switching template that are not explicitly used in the alternate template do not use the correct properties in the context of the alternate template.

For example, if placeholders A, B, and C reside on template 1 (the switching template), and placeholder C resides on template 2 (the alternate template), the whole placeholder collection of template 1 is exposed to the publishing application programming interface (API) through template 2. However, when you programmatically retrieve the properties of placeholder B through API calls on template 2, the properties of placeholder B may not be properly transferred from template 1.



RESOLUTION
To resolve this problem, ensure that the placeholder that you will access resides in both the alternate template and the switching template if you want to access the properties of a placeholder on a switching template from an alternate template programmatically.

If you do not want the placeholder to be visible, you can create the placeholder as a hidden placeholder.

