Show navigation | Frontpage | Contact us | Sitemap

Mime Identifier

The Mime Identifier plug-in enables you to control the MIME type of the page when is is served to the requesting client. This enables you to influence how the content is handled by the client.

Walkthrough example

See how you can output raw XML using this plug-in.

Creating a Mime Identifider

Add an instance of the plug-in (named "Set document MIME type") to your Template Group and name the Identifier "$$<MIME>;" where <MIME> is the MIME type you want to send.

Once created you add the Identifier to pages or templates that should be served with the specified MIME type.

Here are a few common MIME examples:

  • $$text/xml;
    The page is sent using text/xml as MIME type. In clients like Internet Explorer this renders the content as XML.
  • $$application/vnd.ms-excel;
    The page is sent using application/vnd.ms-excel as MIME type. On Windows clients with Microsoft Excel installed this will "force" Excel to start and display the result - mapping HTML TABLE cells into Excell cells.
  • $$application/msword;
    The page is sent using application/msword as MIME type. On Windows clients with Microsoft Word installed this will "force" Word to start and display the result - mapping HTML elements to Word elements.

 

My modules


© 2008 Composite A/S, Danmark
Tlf: +45 39 15 76 00 | info@composite.net
Composite A/S er Microsoft Certified Partner
Composite CMS overholder standarden for valid CSS
Composite CMS overholder standarden for valid XHTML 1.0
Printet fra http://www.composite.net/composite-1530.htm
Findes på denne sti: Composite Developer | 3.x technologies | XSLT | Plug-in documentation | Mime Identifier