Surendra Sharma

Surendra Sharma

Search This Blog

Wednesday, June 5, 2013

Map SiteCore Layout with Visual Studio


·         Create Template for movie with standard values
·         Create Layout and relate the layout with the template from Template – Presentation – details – Default – Edit – Select layout – OK
·         Create Layout Page in Visual Studio with same name. Add “sc” tags as
o    <sc:Text ID="ProductName" Field="ProductName" runat="server"></sc:Text>
o    <sc:Image ID="ProductImage" Alt="Car" Width="100px" Height="100px" MaxWidth="500" MaxHeight="500" Field="ProductImage" runat="server" ></sc:Image>
·         Build VS project.

·         Create Content from template. See preview either from Presentation – Preview or Publish – Preview.

No comments:

Post a Comment