The following 154 words could not be found in the dictionary of 1275 words (including 1275 LocalSpellingWords) and are highlighted below:
Additionally   adjusted   application   attachment   audio   autostart   Basic   be   being   bmp   by   chemical   class   Contents   default   defaults   dependent   Dependent   desc   different   dvi   Embed   embed   enable   enabled   Enabling   example   Examples   examples   experimental   false   file   Flash   flash   fli   following   For   for   from   Further   handled   height   hidden   high   However   if   If   image   included   ins   into   isn   Keyword   keywords   kind   like   line   lines   loop   macro   menu   midi   mimetype   mimetypes   move   movies   mpeg   ms   msvideo   Navigation   need   New   new   Object   object   objects   ogg   On   on   only   op   Optional   options   or   page   parameters   Parameters   params   pdb   pdf   photoshop   play   plug   postscript   protect   quality   quicktime   rather   Realistic   reasons   related   remove   repeat   section   security   see   set   shockwave   should   shown   siblings   since   size   some   specifically   standard   such   support   supported   supports   svg   swf   syntax   Table   target   testpdf   text   things   This   this   those   tiff   to   transclusion   true   types   under   uploaded   Usage   use   used   usually   video   visio   vnd   vrml   wav   width   wikiconfig   will   world   xhtml   xss   yet  

Clear message
Italiano English
Locked History Actions

HelpOnMacros/EmbedObject



EmbedObject

This macro is used to Embed an Object into a wiki page-- objects being things usually handled by plug-ins, such as Flash, PDF, or movies. Optional size of the object could be adjusted. Further keywords are dependent on the kind of application.

If the attachment file isn't uploaded yet the attachment line will be shown.

(!) New in 1.6: MoinMoin has new (for some target types rather experimental) transclusion syntax like this: {{target|desc|params}}.

Enabling EmbedObject

EmbedObject is an included standard moin macro since version 1.5.4. However, for security reasons, mimetypes have to be specifically enabled in your wikiconfig.py to enable EmbedObject.

  1. In your wikiconfig.py file, under the "Content options" section, add the following lines:

        mimetypes_xss_protect = ['text/html', 'application/x-shockwave-flash', 'application/xhtml+xml',] 
    
        mimetypes_embed = ['application/x-dvi', 'application/postscript', 'application/pdf', 'application/ogg', 'application/vnd.visio', 'image/x-ms-bmp', 'image/svg+xml', 'image/tiff', 'image/x-photoshop', 'audio/mpeg', 'audio/midi', 'audio/x-wav', 'video/fli', 'video/mpeg', 'video/quicktime', 'video/x-msvideo', 'chemical/x-pdb', 'x-world/x-vrml',] 
  2. You should specifically add and/or remove content types from the mimetypes_embed to only those you need to use on your site. For example, if you need Flash, move the 'application/x-shockwave-flash' from the mimetypes_xss_protect to the mimetypes_embed line.

see related: HelpOnConfiguration

supported mimetypes:

  • application/x-shockwave-flash
  • application/x-dvi
  • application/postscript
  • application/pdf
  • application/ogg
  • application/vnd.visio
  • image/x-ms-bmp
  • image/svg+xml
  • image/tiff
  • image/x-photoshop
  • audio/mpeg
  • audio/midi
  • audio/x-wav
  • video/fli
  • video/mpeg
  • video/quicktime
  • video/x-msvideo
  • chemical/x-pdb
  • x-world/x-vrml

Syntax & Usage

<<EmbedObject(attachment[,option][,option])>>

Keyword Parameters:

Dependent on the mimetype class a different set of keywords is used from the defaults:

  width = ""
  height = ""
  play = false
  loop = false
  quality = high
  op = true
  repeat = false
  autostart = false
  menu = true
  hidden = false

All mimetypes support width & height parameters.

Additionally:

  • 'video' supports  repeatautostartmenuop 

  • 'audio' supports  playrepeatautostartophidden 

    • the default width is 60 and default height is 20
  • 'application' supports playmenuautostart 

Examples

Basic examples:

<<EmbedObject(example.swf)>>
<<EmbedObject(example.pdf)>>
<<EmbedObject(example.svg)>>

Realistic examples:

<<EmbedObject(testpdf.pdf,width=100%,height=600)>>
<<EmbedObject(example.swf,width=637,height=392,play=true,loop=true)>>