Adding a new mimetype

From KnowledgeTree Community

Jump to: navigation, search

How to add a mimetype entry for a .dbw file

  • 1) Add your new mime-type icon to the knowledgeTree/resources/mimetypes directory;
    • PNG format for IE7 and FF
    • GIF format for IE6
  • 2) Add the icon reference to the mimetypes CSS files
    • IE6 - knowledgeTree/resources/css/kt-ie-icons.css
      • Add the following line:
.contenttype.dbw { background-image: url(../../resources/mimetypes/dbw.gif); }
    • IE7 and FF - knowledgeTree/resources/css/kt-contenttypes.css
      • Add the following line:
.contenttype.dbw { background-image: url(../../resources/mimetypes/dbw.png); }
  • 3) Add a mimetype entry to the mime_types table in the database:
insert into `mime_types` (`id`, `filetypes`, `mimetypes`, `icon_path`, `friendly_name`, `extractor_id`, `mime_document_id`) values(,'dbw','application/dbw','dbw','My DBW file',NULL,NULL);
Personal tools