PRB: Cannot Retrieve Image Properties for Placeholders that Are Not in a Switched Template (302286)
The information in this article applies to:
- Microsoft Content Management Server 2001
- 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.
REFERENCES
For more information on template switching, see Chapter 4 in the CMS 2001 or Resolution 4.0 Site Programmer's Guide.
Modification Type: | Major | Last Reviewed: | 10/23/2003 |
---|
Keywords: | kbprb KB302286 |
---|
|