Valid for Sitecore 
  5.2, 5.1.1
 
    Create a Placeholder
|  Prev  Next  | 
To create a Placeholder:
- 
    using the WYSIWYG Layout Editor: 
    - Log in to the Sitecore Desktop on a development server as a user with appropriate permissions.
- Open Layout Studio.
- Choose File » Open » Layout or File » Open » Sublayout and choose the Layout or Sublayout to which the Placeholder will be added.
- Drag the token Placeholder in the tree at the left of Layout Studio onto the Layout or Sublayout where the Placeholder should be added.
- Double-click on the Placeholder to change its properties, specifically its key.
- Save the Layout or Sublayout.
 
- 
    To create a Placeholder using Microsoft® Visual Studio .NET: 
    - Open the project in Visual Studio.
- Open Solution Explorer and navigate to the Layout or Sublayout (generally in the /layouts folder).
- If the Layout or Sublayout has not been added to the project, right-click on the file and add it to the project.
- Double-click on the Layout or Sublayout.
- Select the HTML tab.
- Ensure the TagPrefix sc has been registered in the header of the file with code such as <%@ register TagPrefix="sc" Namespace="Sitecore.Web.UI.WebControls" Assembly="Sitecore.Kernel" %>.
- In the source-code view, add code such as <sc:placeholder runat="server" key="content" /> where key is the key to associate with this Placeholder.
 
 Prev  Next
 Prev  Next 
 Print
      Print