(Minor variable correction) |
(Template text expanded) |
||
Line 3: | Line 3: | ||
When you want to create a new resource type, you should place the section below in your {{{file}}} file. Note that the options you can use are described in the [[{{{link}}}|Handling Built-in Resource Types]] section. | When you want to create a new resource type, you should place the section below in your {{{file}}} file. Note that the options you can use are described in the [[{{{link}}}|Handling Built-in Resource Types]] section. | ||
− | Example: Suppose you want to create a new resource type named <code>MSdocs</code>, which will only be used for files with the <code>.doc</code>, <code>.ppt</code>, and <code>.xls</code> extensions and the maximum size of 2 megabytes. | + | Example: Suppose you want to create a new resource type named <code>MSdocs</code>, which will only be used for files with the <code>.doc</code>, <code>.ppt</code>, and <code>.xls</code> extensions and the maximum size of 2 megabytes. Add the following code to your configuration file. |
Latest revision as of 07:59, 31 March 2011
When you want to create a new resource type, you should place the section below in your {{{file}}} file. Note that the options you can use are described in the [[{{{link}}}|Handling Built-in Resource Types]] section.
Example: Suppose you want to create a new resource type named MSdocs
, which will only be used for files with the .doc
, .ppt
, and .xls
extensions and the maximum size of 2 megabytes. Add the following code to your configuration file.