Thursday, 13 August 2015

How can I ensure the rendering Properties is always opened when I add rendering to Item

The "Open Properties After Add" field allows you to choose if the component properties (datasource, caching, params etc.) windows will be opened automatically when a content editor adds a sublayout to a page. It has values of "Default", "Yes" and "No".


How Can I export Mime Types from One machine to other Machine

 The Mime type are stored on below files.. Copy Paste from one machine to other may help


c:\windows\system32\inetsrv\metabase.xml

 c:\windows\system32\inetsrv\config\applicationhost.config

Wednesday, 12 August 2015

Viewstate uses which classes in order to save control state

Manages the view state of ASP.NET server controls, including pages. This class cannot be inherited.


System.Object 
  System.Web.UI.StateBag

Is duration compulsary in OutputCache

Yes
 
If you will not pass you will get Run time parser error..
 
 
 [OutputCache( VaryByParam = "None")]
 
Will Throw run time error... 

Tuesday, 11 August 2015

How to disable Indexing in sitecore

<setting name="Indexing.Enabled" value="false" />

Sitecore.Configuration.Settings.Indexing.Enabled = false;
 
This is used in sitecore as
 
            public static bool Enabled
            {
                get
                {
                    return Settings.Indexing.enabled;
                }
                set
                {
                    Settings.Indexing.enabled = value;
                }
            } 
 
 
Also 
 
    // How to pause indexing in Sitecore 7.0 Update-1 (rev130810) and later
    IndexCustodian.PauseIndexing();
    // Do a lot of item updates
    // Enable indexing again. Might be a good idea to also rebuild all indexes.
    IndexCustodian.ResumeIndexing();
 
 

Thursday, 6 August 2015

Image compression using Dianoga

https://github.com/kamsar/Dianoga

I installed using Nuget


https://www.nuget.org/packages/Dianoga/

PM> Install-Package Dianoga

Featured post

Getting Started With SOLR

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