Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/bestpractical/rt-extension-customizecontenttype
https://github.com/bestpractical/rt-extension-customizecontenttype
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/bestpractical/rt-extension-customizecontenttype
- Owner: bestpractical
- Created: 2012-04-06T03:23:04.000Z (over 12 years ago)
- Default Branch: master
- Last Pushed: 2022-03-03T18:45:12.000Z (almost 3 years ago)
- Last Synced: 2023-04-13T18:31:29.311Z (over 1 year ago)
- Language: Perl
- Homepage: http://search.cpan.org/dist/rt-extension-customizecontenttype
- Size: 56.6 KB
- Stars: 2
- Watchers: 5
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README
- Changelog: Changes
Awesome Lists containing this project
README
NAME
RT::Extension::CustomizeContentType - Customize Attachments' ContentTypeINSTALLATION
perl Makefile.PL
make
make install
May need root permissionsEdit your /opt/rt4/etc/RT_SiteConfig.pm
If you are using RT 4.2 or greater, add this line:Plugin('RT::Extension::CustomizeContentType');
For RT 4.0, add this line:
Set(@Plugins, qw(RT::Extension::CustomizeContentType));
or add RT::Extension::CustomizeContentType to your existing @Plugins
line.Clear your mason cache
rm -rf /opt/rt4/var/mason_data/objRestart your webserver
CONFIGURATION
Set the %ContentTypes configuration variable to a hash of extension and
desired content-type:Set(
%ContentTypes,
(
't' => 'text/x-perl-script',
'psgi' => 'text/x-perl-script',
)
);Microsoft Office
Older versions of IE often upload newer Microsoft Office documents with
the generic application/octet-stream MIME type instead of something more
appropriate. This causes RT to offer the file for download using the
generic content type, which confuses users and doesn't launch Office for
them. You can fix that by installing this extension and using the
configuration below:Set(%ContentTypes,
'docm' => 'application/vnd.ms-word.document.macroEnabled.12',
'docx' => 'application/vnd.openxmlformats-officedocument.wordprocessingml.document',
'dotm' => 'application/vnd.ms-word.template.macroEnabled.12',
'dotx' => 'application/vnd.openxmlformats-officedocument.wordprocessingml.template',
'potm' => 'application/vnd.ms-powerpoint.template.macroEnabled.12',
'potx' => 'application/vnd.openxmlformats-officedocument.presentationml.template',
'ppam' => 'application/vnd.ms-powerpoint.addin.macroEnabled.12',
'ppsm' => 'application/vnd.ms-powerpoint.slideshow.macroEnabled.12',
'ppsx' => 'application/vnd.openxmlformats-officedocument.presentationml.slideshow',
'pptm' => 'application/vnd.ms-powerpoint.presentation.macroEnabled.12',
'pptx' => 'application/vnd.openxmlformats-officedocument.presentationml.presentation',
'xlam' => 'application/vnd.ms-excel.addin.macroEnabled.12',
'xlsb' => 'application/vnd.ms-excel.sheet.binary.macroEnabled.12',
'xlsm' => 'application/vnd.ms-excel.sheet.macroEnabled.12',
'xlsx' => 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet',
'xltm' => 'application/vnd.ms-excel.template.macroEnabled.12',
'xltx' => 'application/vnd.openxmlformats-officedocument.spreadsheetml.template',
);Config contributed by Nathan March.
AUTHOR
Best Practical Solutions, LLCBUGS
All bugs should be reported via email toL
or via the web at
L.
LICENSE AND COPYRIGHT
This software is Copyright (c) 2014 by Best Practical SolutionsThis is free software, licensed under:
The GNU General Public License, Version 2, June 1991