Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Lenya Wiki" for change 
notification.

The following page has been changed by GregorRothfuss:
http://wiki.apache.org/lenya/AddingMimetypeHowto

The comment on the change is:
moved to lenya docs

------------------------------------------------------------------------------
- = How To Add a new Mime-Type to be supported by Lenya =
+ deleted
  
- Lenya comes with many mime-types supported "off-the-shelf".
- However the list of mime-types is not (and can not be) exhaustive. If you 
have a Mime-Type which is not yet known to Lenya, such as Avi Videos (Mime-type 
video/x-msvideo) that the content editors of your site insist on using, proceed 
as described here.
- 
- == Enabling the downloads ==
- 
- The resource types which are known to your Lenya installation are defined in 
the file {{{lenya/resources.xmap}}}. Add the new Mime-Type in here, for example 
for Avi this is: 
- {{{
-           <map:match pattern="*/*/**.avi">
-             <map:read src="pubs/{1}/resources/{2}/{3}.avi" 
mime-tyoe="video/x-msvideo" />
-           </map:match>
- }}}
- 
- You probably need to restart your servlet container in order for the changes 
to take effect.
- 
- Now, visitors of your pages should be able to download objects of this 
mime-type.
- 
- == Enabling the uploading for the content editors ==
- 
- In the asset handling, there are some restrictions as to what filetypes you 
are allowed to upload.
- If the file extension you require is not yet allowed, edit the file
- {{{xslt/authoring/asset.xsl}}} and add it to the list of types defined in {{{ 
<xsl:param name="extensions" ...}}}
- 
- If you are using Bitfluxeditor, edit the file {{{xslt/bxeng/asset.xsl}}} and 
add it to the list of types defined in
- {{{<xsl:param name="extensions" ...}}}
- 
- 

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to