Return to doc.sitecore.com

Valid for Sitecore 5.2, 5.1.1
  Dynamically Bind a Sublayout to a Placeholder
Prev Next

To dynamically bind a Sublayout to a Placeholder in a containing Layout or Sublayout:

  1. First determine the key of the Placeholder into which the Sublayout will fall.  This Placeholder may be in the Layout or any of the Sublayouts that are statically bound to that Layout or dynamically bound to Placeholders in that Layout.
  2. Log in to the Sitecore Desktop on a development server as a user with appropriate permissions.
  3. If the Sublayout is to be added for all Items based on a given Template, open that Template in Template Manager; otherwise open the Item to which that Rendering is to be added in Content Editor.
  4. In the Layout section, select the link at the top of the Device to affect.
  5. If the value of the Layout property is empty or the other appropriate Sublayouts are not already listed, select the Layout that should be applied to this Item or all Items associated with this Template and/or add any missing Sublayouts.
  6. Add the Sublayout, setting the Placeholder property to the Placeholder key into which the Sublayout should fall.
  7. Changes made to Templates which are inherited to Items will not be visible in the published environment until a full publication has been performed.

Prev Next