Wednesday, 30 July 2014

How to Remove a sitecore instant

worth to read this artcile @
http://www.cmsbestpractices.com/sitecore-corrupted-instance-manual-uninstall/

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


http://jockstothecore.com/setting-up-a-sitecore-solution-part-1-visual-studio-and-projects/

Friday, 25 July 2014

AN ERROR CAUSED THE SITECORE INSTALLATION WIZARD TO END PREMATURELY”

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 asp.net 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:
http://localhost
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.

http://stackoverflow.com/questions/13051274/post-installation-styles-are-missing-on-the-sitecore-login-and-content-editor-pa

Tuesday, 15 July 2014

Site Core Content API COOK BOOK

http://sdn.sitecore.net/upload/sitecore6/64/content_api_cookbook_sc64_and_later-usletter.pdf

Sitecore Project Review Recommended Practices

http://sdn.sitecore.net/upload/sdn5/products/sitecore6/sitecore_recommended_practices-a4.pdf

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
                        deviceDefinition.AddRendering(renderingDefinition);

                        // Save the layout changes
                        item.Editing.BeginEdit();
                        layoutField.Value = layoutDefinition.ToXml(); ;
                        item.Editing.EndEdit();
                    }
                }
            }
        }







Code From : http://www.bugdebugzone.com/2014/06/how-to-add-sublayout-to-sitecore-item.html

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

http://www.velir.com/blog/index.php/2013/09/20/a-command-line-for-sitecore/

Wednesday, 2 July 2014

Velocity Tokens in Sitecore

The following lists the tokens available in Sitecore 6.2.
$name
The name of the item being created
$id
The ID of the item being created
$parentid
The ID of the parent of the item being created
$parentname
The name of the parent of the item being created
$date
Date part of the current datetime in Sitecore ISO format
$time
Time part of the current datetime in Sitecore ISO format
$now
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

http://adeneys.wordpress.com/2009/12/29/custom-tokens-and-nvelocity-for-item-creation/

Featured post

Getting Started With SOLR

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