r17 - 15 Feb 2006 - 07:11:03 - PeterThoenyYou are here: TWiki >  Plugins Web > MorePluginHooks > BeforeAttachmentSaveHandler > MsOfficeAttachmentsAsHTMLPlugin
Tags:
export 1 Add my vote for this tag, windows 2 Add my vote for this tag, , create new tag

Ms Office Attachments As HTML Plugin

This is a plugin to convert attached MS Office files into HTML such that they appear inline in the topic text.

It means your users can edit in Word and publish on the Wiki.

Later we'd want to implement PageType

There is nothing specific that would make this only work with MS files. For example it could help with OpenOfficeIntegration

This plugin is looking for a new owner

Dakar Compatibility Information

This plugin does not currently work with Dakar (tested November 2005). Users experiencing the following errors in Apache should disable this plugin:
[error] upload: binmode() on closed filehandle F at /twiki/lib/TWiki/Store.pm line 863., referer: http://twiki/bin/attach/Main/WebHome
upload: syswrite() on closed filehandle F at /twiki/lib/TWiki/Store.pm line 866., referer: http://twiki/bin/attach/Main/WebHome
[error] upload: binmode() on closed filehandle fh00001H%3A\\test.test at /twiki/lib/TWiki/Store.pm line 872., referer: http://twiki/bin/attach/Main/WebHome
[error] upload: read() on closed filehandle fh00001H%3A\\test.test at /twiki/lib/TWiki/Store/RcsFile.pm line 692., referer: http://twiki/bin/attach/Main/WebHome
[error] upload: binmode() on closed filehandle F at /twiki/lib/TWiki/Store.pm line 863., referer: http://twiki/bin/attach/Main/WebHome
[error] upload: syswrite() on closed filehandle F at /twiki/lib/TWiki/Store.pm line 866., referer: http://twiki/bin/attach/Main/WebHome

Syntax Rules

MsOfficeAttachmentsAsHTMLPlugin Global Settings

Plugin settings are stored as preferences variables. To reference a plugin setting write %<plugin>_<setting>%, for example, %EMPTYPLUGIN_SHORTDESCRIPTION%

  • One line description, shown in the TextFormattingRules topic:
    • Set SHORTDESCRIPTION = This plugin converts MS Office files into HTML files, preserving the original and creating a HTML version which is then referenced from the topic text.

    • Set DEBUG = 0
    • Set REPLACEMENTNOTE = This text was automatically generated from the attachment $attachment

Failed to include URL http://twiki.org/p/pub/Plugins/MsOfficeAttachmentsAsHTMLPlugin/$convertedAttachmentPath

Plugin Installation Instructions

Note: You do not need to install anything on the browser to use this plugin. The following instructions are for the administrator who installs the plugin on the server where TWiki is running.

  • Download the ZIP file from the Plugin web (see below)
  • Unzip MsOfficeAttachmentsAsHTMLPlugin.zip in your twiki installation directory. Content:
    File: Description:
    data/TWiki/MsOfficeAttachmentsAsHTMLPlugin.txt Plugin topic
    data/TWiki/MsOfficeAttachmentsAsHTMLPlugin.txt,v Plugin topic repository
    lib/TWiki/Plugins/MsOfficeAttachmentsAsHTMLPlugin.pm Plugin Perl module
  • Test if the plugin is correctly installed:
    • (describe tests here)

Plugin Info

Plugin Author: Not maintained - looking for a volunteer.
Plugin Version: 11 Apr 2004 (MartinCleaver V1.000)
CPAN Dependencies: none
Other Dependencies: wvWare; Windows also requires wvHtml
Perl Version: 5.005
Plugin Home: http://TWiki.org/cgi-bin/view/Plugins/MsOfficeAttachmentsAsHTMLPlugin
Feedback: http://TWiki.org/cgi-bin/view/Plugins/MsOfficeAttachmentsAsHTMLPluginDev

Related Topics: TWikiPreferences, TWikiPlugins, DefaultPlugin

-- MartinCleaver - 11 Apr 2004

Topic attachments
I Attachment Action Size Date Who Comment
zipzip MsOfficeAttachmentsAsHTMLPlugin.zip manage 2.9 K 11 Apr 2004 - 15:17 MartinCleaver  
Edit | WYSIWYG | Attach | Printable | Raw View | Backlinks: Web, All Webs | History: r17 < r16 < r15 < r14 < r13 | More topic actions
 
Powered by TWiki
This site is powered by the TWiki collaboration platformCopyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback SourceForge.net Logo