Wednesday, 30 July 2014

How to Remove a sitecore instant

worth to read this artcile @

Tuesday, 29 July 2014

How to Track active items in solution explorer

 Tools -> Options -> Projects and Solutions –> General 

Check the track active item in solution.

Configure the Visual studio in order to get the detailed Error Message

Go to
Tools -> Options -> Projects and Solutions -> Build and Run -> MS Build project build output verbosity

Screen Shot 2013-12-08 at 11.17.48 AM

Friday, 25 July 2014


Error1:  “an error caused the sitecore installation wizard to end prematurely”

While installing sitecore 7.2 in windows 8 along with IIS8 server I was getting the error “an error caused the sitecore installation wizard to end prematurely” while investigating further I found that the error comes while sitecore perform the following “enabling in iis”

When Google further

  1. On the Start page, click the Control Panel tile.
  2. In Control Panel, click Programs, and then click Turn Windows features on or off.
  3. In the Windows Features dialog box, click Internet Information Services to install the default features.
  4. Expand the Application Development Features node and click ASP.NET 4.5 to add the features that support ASP.NET. (If you installed .NET 3.5, select ASP.NET 3.5 also.)
The following additional features are automatically selected:
    • .NET Extensibility 4.5 
    • ISAPI Extensions 
    • ISAPI Filters 
    • .NET Extensibility 3.5 (If ASP.NET 3.5 was selected)
  1. Click OK to close the Windows Features dialog box.
  2. To verify that IIS installed successfully, type the following into a web browser:
The default IIS Welcome page is displayed.

CSS is missing post installtion of sitecore

Looks like the "Static Content" feature isn't enabled for IIS. You can check it in the "Turn Windows features on or off", "Internet Information Services", "Worlds Wide Web Services", "Common HTTP Features".
If the feature is installed, check the issue with Fiddler - look at the status code and content that all .css requests return.

Tuesday, 15 July 2014

Site Core Content API COOK BOOK

Sitecore Project Review Recommended Practices

Wednesday, 9 July 2014

How to add a sublayout to Sitecore item programmatically

 public void AddSublayoutToItem(string itemId, string sublayoutId)
            using (new Sitecore.SecurityModel.SecurityDisabler())
                if (Sitecore.Data.ID.IsID(itemId) && Sitecore.Data.ID.IsID(sublayoutId))
                    //Get the master database and get the item on which you want to add sublayout
                    Database masterDatabase = Database.GetDatabase("master");
                    Item item = masterDatabase.GetItem(Sitecore.Data.ID.Parse(itemId));

                    //  Or you can also get Sitecore Item from Context Database as per your requirement
                    //  Item item = Sitecore.Context.Database.GetItem(Sitecore.Data.ID.Parse(itemId));

                    if (item != null)
                        // Get the layout definitions and the device definition
                        LayoutField layoutField = new LayoutField(item.Fields[Sitecore.FieldIDs.LayoutField]);
                        LayoutDefinition layoutDefinition = LayoutDefinition.Parse(layoutField.Value);
                        DeviceDefinition deviceDefinition = layoutDefinition.GetDevice(Sitecore.Context.Device.ID.ToString());

                        //Create a RenderingDefinition and add the reference of sublayout or rendering
                        RenderingDefinition renderingDefinition = new RenderingDefinition();
                        renderingDefinition.ItemID = sublayoutId;
                        //Set placeholder where the rendering should be displayed
                        renderingDefinition.Placeholder = "content";
                        // Set the datasource of sublayout, if any
                        renderingDefinition.Datasource = "{24240FF2-B4AA-4EB2-B0A4-63E027934C38}";

                        // you can also set datasource of sublayout using Sitecore Path
                        // renderingDefinition.Datasource = "/sitecore/content/Home/Books";

                        //Add the RenderingReference to the DeviceDefinition

                        // Save the layout changes
                        layoutField.Value = layoutDefinition.ToXml(); ;

Code From :

Tuesday, 8 July 2014

Command Line for Sitecore

 Command Line for Sitecore
Revolver and PowerShell Extensions

which to use : both 

Where : Should limit only on Developer Environment

Wednesday, 2 July 2014

Velocity Tokens in Sitecore

The following lists the tokens available in Sitecore 6.2.
The name of the item being created
The ID of the item being created
The ID of the parent of the item being created
The name of the parent of the item being created
Date part of the current datetime in Sitecore ISO format
Time part of the current datetime in Sitecore ISO format
The current date in Sitecore ISO format

Token were earlier called as velocity Variables...
We can create our own custom tokens 
Very good articles as given below

Featured post

Getting Started With SOLR

Getting Started with Solr ·           Features o    Hit highlighting o    Auto correction o    Faceted Search o    Multi lan...