Mime Types Configuration

The mime types configuration file configures the mime types icons overrides for a site/blueprint. It also allows you to override the default icons for content types .

To modify the mime types configuration, click on siteConfig from the bottom of the Sidebar, then click on Configuration and select Mime Types from the dropdown list.

Configurations - Open Mime Types Configuration

Sample

CRAFTER_HOME/data/repos/sites/SITENAME/sandbox/config/studio/mime-type.xml
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
<?xml version="1.0" encoding="UTF-8"?>
<!-- mime-type.xml
  This file configures the mime types icons overrides for this site/blueprint.

  For every configuration you'd like to make editable, you need:
    <mime-type>
      <type />
      <icon>
        <class />
        <styles>
          ...
        </styles>
      </icon>
    </mime-type>

  The elements are:
  - type: The mime type or content type. This is the target mime type/content type that will be affected by the new icon/styles defined on the configuration
  - class: The Font Awesome class for the icon that will be showed for the mime type/content type.
  - styles: CSS styles for the icon selected, you can customize the icon with css like styles (e.g <color>#ffffff</color>)
-->

<mime-types>
  <mime-type>
    <type>application/zip</type>
    <icon>
      <class>fa-user fa-spin</class>
      <styles>
        <color>#ff0000</color>
        <font-size>16px</font-size>
      </styles>
    </icon>
  </mime-type>

  <!-- Change icon for component content type contact-widget -->
  <mime-type>
    <type>/component/contact-widget</type>
    <icon>
      <class>fa-id-card</class>
      <styles>
        <color>#ff0000</color>
        <font-size>16px</font-size>
      </styles>
    </icon>
  </mime-type>
</mime-types>