Return to doc.sitecore.com

  Config file changes in Sitecore CMS and DMS 7.2 rev. 140526 compared to CMS and DMS 7.2 rev. 140314

This update requires you to make changes to the following files:

The clean configuration files for Sitecore CMS and DMS 7.2 rev. 140526 can be downloaded using the following links:

Changes to Web.config

The following changes have been made to the Web.config file of Sitecore CMS 7.2 rev. 140526 (Update-2) as compared to the Web.config file of Sitecore CMS 7.2 rev. 140314 (Update-1).

  1. In the <mediaTypes> section, for the <mediaType name="Windows Bitmap image" extensions="bmp">…</mediaType> node change the value of extensions attribute to "bmp, dib". In a clean Sitecore installation, this node now looks like this:
    <mediaType name="Windows Bitmap image" extensions="bmp, dib">
      <mimeType>image/bmp</mimeType>
      <forceDownload>false</forceDownload>
      <sharedTemplate>system/media/unversioned/image</sharedTemplate>
      <versionedTemplate>system/media/versioned/image</versionedTemplate>
      <mediaValidator type="Sitecore.Resources.Media.ImageValidator" />
      <thumbnails>
        <generator type="Sitecore.Resources.Media.ImageThumbnailGenerator, Sitecore.Kernel">
          <extension>png</extension>
        </generator>
        <width>150</width>
        <height>150</height>
        <backgroundColor>#FFFFFF</backgroundColor>
      </thumbnails>
      <prototypes>
        <media type="Sitecore.Resources.Media.ImageMedia, Sitecore.Kernel" />
      </prototypes>
    </mediaType>
  2. In the <mediaTypes> section, for the <mediaType name="JPEG image" extensions="jpg, jpeg">…</mediaType> node change the value of extensions attribute to "jpg, jpeg, jpe, jfif". In a clean Sitecore installation, this node now looks like this:
    <mediaType name="JPEG image" extensions="jpg, jpeg, jpe, jfif">
      <mimeType>image/jpeg</mimeType>
      <forceDownload>false</forceDownload>
      <sharedTemplate>system/media/unversioned/jpeg</sharedTemplate>
      <versionedTemplate>system/media/versioned/jpeg</versionedTemplate>
      <mediaValidator type="Sitecore.Resources.Media.ImageValidator" />
      <thumbnails>
        <generator type="Sitecore.Resources.Media.ImageThumbnailGenerator, Sitecore.Kernel">
          <extension>png</extension>
        </generator>
        <width>150</width>
        <height>150</height>
        <backgroundColor>#FFFFFF</backgroundColor>
      </thumbnails>
      <prototypes>
        <media type="Sitecore.Resources.Media.JpegMedia, Sitecore.Kernel" />
      </prototypes>
    </mediaType>
  3. In the <media types> section, add the following:
    <mediaType name="AVI video" extensions="avi">
              <mimeType>video/x-msvideo</mimeType>
              <forceDownload>false</forceDownload>
              <sharedTemplate>system/media/unversioned/Movie</sharedTemplate>
              <versionedTemplate>system/media/versioned/Movie</versionedTemplate>
            </mediaType>
     
    <mediaType name="Flash video" extensions="flv">
              <mimeType>video/x-flv</mimeType>
              <forceDownload>false</forceDownload>
              <sharedTemplate>system/media/unversioned/Movie</sharedTemplate>
              <versionedTemplate>system/media/versioned/Movie</versionedTemplate>
            </mediaType>
     
    <mediaType name="MP4 video" extensions="mp4">
              <mimeType>video/mp4</mimeType>
              <forceDownload>false</forceDownload>
              <sharedTemplate>system/media/unversioned/Movie</sharedTemplate>
              <versionedTemplate>system/media/versioned/Movie</versionedTemplate>
            </mediaType>
     
    <mediaType name="QuickTime movie" extensions="mov, qt">
              <mimeType>video/quicktime</mimeType>
              <forceDownload>false</forceDownload>
              <sharedTemplate>system/media/unversioned/Movie</sharedTemplate>
              <versionedTemplate>system/media/versioned/Movie</versionedTemplate>
            </mediaType>
            <mediaType name="TIFF image" extensions="tiff, tif">
              <mimeType>image/tiff</mimeType>
              <forceDownload>false</forceDownload>
              <sharedTemplate>system/media/unversioned/image</sharedTemplate>
              <versionedTemplate>system/media/versioned/image</versionedTemplate>
              <mediaValidator type="Sitecore.Resources.Media.ImageValidator" />
              <thumbnails>
                <generator type="Sitecore.Resources.Media.ImageThumbnailGenerator, Sitecore.Kernel">
                  <extension>png</extension>
                </generator>
                <width>150</width>
                <height>150</height>
                <backgroundColor>#FFFFFF</backgroundColor>
              </thumbnails>
              <prototypes>
                <media type="Sitecore.Resources.Media.ImageMedia, Sitecore.Kernel" />
              </prototypes>
            </mediaType>
     
    <mediaType name="Video for Adobe Flash Player" extensions="f4v">
              <mimeType>video/x-f4v</mimeType>
              <forceDownload>false</forceDownload>
              <sharedTemplate>system/media/unversioned/Movie</sharedTemplate>
              <versionedTemplate>system/media/versioned/Movie</versionedTemplate>
            </mediaType>
            <mediaType name="Windows Media video" extensions="WMV">
              <mimeType>video/x-ms-wmv</mimeType>
              <forceDownload>false</forceDownload>
              <sharedTemplate>system/media/unversioned/Movie</sharedTemplate>
              <versionedTemplate>system/media/versioned/Movie</versionedTemplate>
            </mediaType>

  4. In the <settings> section, add the following setting (between the "Media.MediaLinkPrefix" and "Media.OpenContentEditorAfterUpload" settings):
    <!--  MEDIA - MEDIA LINK SERVER URL
          The server URL to use when Sitecore generates media links and when Media.AlwaysIncludeServerUrl is set to true. This is typically
          used when all media is served from one or more dedicated instances or when your solution is configured to store Sitecore media on
          a content delivery network.
          The URL must use this format: <protocol>://<hostname>, for example http://example.com
          If the value is not set, the URL of the current server will be used.
          Default value: ""
    -->
    <setting name="Media.MediaLinkServerUrl" value="" />
  5. In the <settings> section, add following settings (between the "RequireLockBeforeEditing" and "Rules.ItemEventHandlers.RunDuringPublishing" settings):
    <!--  SEARCH CLASSIC SEARCH MAX RESULTS
          Specifies the maximum number of results to return when using the Search application (classic search) to search.
          If the value is set to 0, all the items that match the query are returned.
          Default value: 15
    -->
    <setting name="Search.ClassicSearch.MaxResults" value="15" />
    <!--  SEARCH CONTENT TREE SEARCH MAX RESULTS
          Specifies the maximum number of results to return when using the search panel above the content tree to search.
          If the value is set to 0, all the items that match the query are returned.
          Default value: 25
    -->
    <setting name="Search.ContentTreeSearch.MaxResults" value="25" />
    <!--  SEARCH INSTANT SEARCH MAX RESULTS
          Specifies the maximum number of results to return when using
          the instant search panel (on the status bar in the Sitecore Desktop) to search.
          If the value is set to 0, all the items that match the query are returned.
          Default value: 15
    -->
    <setting name="Search.InstantSearch.MaxResults" value="15" />
  6. In the <system.web> section, for the < httpRuntime … /> node add "relaxedUrlToFileSystemMapping" attribute with the value "true". In a clean Sitecore installation, this node now looks like this:
    <httpRuntime maxRequestLength="512000" executionTimeout="600" enableKernelOutputCache="false" relaxedUrlToFileSystemMapping="true"/>

Changes to App_Config\MimeTypes.config

Tip: Most customers have only applied a small number of changes (if any) to the MimeTypes.config file. In that case, we recommend that you simply download the clean config file using the link above and re-apply any changes that you've made to save time and to reduce the risk of making mistakes when making the changes to the file.
The following changes have been made to the App_Config\MimeTypes.config file of Sitecore CMS 7.2 rev. 140526 (Update-2) as compared to the App_Config\MimeTypes.config file of Sitecore CMS 7.2 rev. 140314 (Update-1).

  1. In the <configuration> section, add the following node (you can add it at any place in the section, but in a clean Sitecore installation the new node is placed between the <mediaType extensions="m3u">…</mediaType> and  <mediaType extensions="man">…</mediaType> nodes):
    <mediaType extensions="m4v">
     <mimeType>video/mp4</mimeType>
    </mediaType>
  2. In the <mediaTypes> section, add the following node (you can add it at any place in the section, but in a clean Sitecore installation the new node is placed between the <mediaType extensions="oda">…</mediaType> and  <mediaType extensions="p10">…</mediaType> nodes):
    <mediaType extensions="ogg">
     <mimeType>video/ogg</mimeType>
    </mediaType>

Changes to App_Config\Include\Sitecore.ContentSearch.Lucene.DefaultIndexConfiguration.config

The following changes have been made to the App_Config\Include\Sitecore.ContentSearch.Lucene.DefaultIndexConfiguration.config file of Sitecore CMS 7.2 rev. 140526 (Update-2) as compared to the App_Config\Include\Sitecore.ContentSearch.Lucene.DefaultIndexConfiguration.config file of Sitecore CMS 7.2 rev. 140314 (Update-1).

  1. In the <fieldNames> section, add the following node, at the end of the section:
    <field fieldName="__hidden" storageType="YES" indexType="TOKENIZED" vectorType="NO" boost="1f" type="System.Boolean" settingType="Sitecore.ContentSearch.LuceneProvider.LuceneSearchFieldConfiguration, Sitecore.ContentSearch.LuceneProvider" />
  2. In the <exclude hint="list:ExcludeField"> section, remove the following node:
    <Hidden>{39C4902E-9960-4469-AEEF-E878E9C8218F}</Hidden>

Changes to App_Config\Include\Sitecore.ItemWebApi.config

The following changes have been made to the App_Config\Include\Sitecore.ItemWebApi.config file of Sitecore CMS 7.2 rev. 140526 (Update-2) as compared to the App_Config\Include\Sitecore.ItemWebApi.config file of Sitecore CMS 7.2 rev. 140314 (Update-1).

  1. Check if the <itemWebApiRequest> pipeline contains the following processor of type CheckParameters (it is present if you have upgraded to 7.2 from 7.1 Update-3 or later). If the processor does not exist, you must add it before the existing processors:
    <processor type="Sitecore.ItemWebApi.Pipelines.Request.CheckParameters, Sitecore.ItemWebApi" >
      <parameters hint="list">
        <name desc="item id1">sc_itemid</name>
        <name desc="item id2">sc_database</name>
        <name desc="item id3">language</name>
        <name desc="item id4">fields</name>
        <name desc="item id5">payload</name>
        <name desc="item id6">scope</name>
        <name desc="item id7">query</name>
        <name desc="item id8">page</name>
        <name desc="item id9">template</name>
        <name desc="item id10">name</name>
        <name desc="item id11">database</name>
        <name desc="item id12">pagesize</name>
        <name desc="item id13">renderingid</name>
        <name desc="item id14">sc_itemversion</name>
      </parameters>
    </processor>

Changes to App_Config\Include\Sitecore.Speak.config

The following changes have been made to the App_Config\Include\Sitecore.Speak.config file of Sitecore CMS 7.2 rev. 140526 (Update-2) as compared to the App_Config\Include\Sitecore.Speak.config file of Sitecore CMS 7.2 rev. 140314 (Update-1).

  1. In the <settings> section, add the following setting (between the "Speak.Html.RequireJsMainFile" and "IsProductionMode" settings):
    <!--  SPEAK REQUIRE WAIT SECONDS
    Overrides the Require.js waitSeconds setting
    Default: 7
    -->
    <setting name="Speak.Html.RequireJsWaitSeconds" value="7"/>

Changes to App_Config\Include\Sitecore.Speak.ItemWebApi.config

The following changes have been made to the App_Config\Include\Sitecore.Speak.ItemWebApi.config file of Sitecore CMS 7.2 rev. 140526 (Update-2) as compared to the App_Config\Include\Sitecore.ItemWebApi.config file of Sitecore CMS 7.2 rev. 140314 (Update-1).

  1. Check if the <itemWebApiRequest> pipeline contains the following processor of type CheckParameters (it is present if you have upgraded to 7.2 from 7.1 Update-3 or later). If the processor does not exist, you must add it after the existing processors:
    <processor type="Sitecore.ItemWebApi.Pipelines.Request.CheckParameters, Sitecore.ItemWebApi">
      <parameters hint="list">
        <name desc="speak-parameter1">facetsRootItemId</name>
        <name desc="speak-parameter2">search</name>
        <name desc="speak-parameter3">root</name>
        <name desc="speak-parameter4">searchConfig</name>
        <name desc="speak-parameter5">pageIndex</name>
        <name desc="speak-parameter6">sc_content</name>
        <name desc="speak-parameter7">format</name>
        <name desc="speak-parameter8">sorting</name>
        <name desc="speak-parameter9">showHiddenItems</name>
      </parameters>
    </processor>