Posts

Showing posts with the label Glass Mapper

Sitecore Glass mapper ReferenceField (DropLink)

Image
   Introduction: In this post we will see how we can leverage ORM concept in Sitecore as well. We will start with simple project and introduce Glass mapper. Reference Field will be our main focus in the post.  Background: We have updated sitecore Home Page with our Layout and Controller Rendering. Given below is the pictorial view. Layout : Under Layout Section in Content Editor fig-1 Create a mvc Layout. My layout just contain a Place holder as shown below fig-2 for this post we will just be using Static place holder i.e "smain" Rendering: We will be creating a rendering and data source for the same. Under Feature folder create new rendering folder -> than create Controller Rendering. The Controller field will contain , Name Space + Controller Class and with comma separated, we mention which dll contain this class. Action contains Method to hit in the Controller. fig-3 Add the layout and rendering to Home Item as shown below. By This time I hope we all know how to add...