welcome: please sign in

The following 205 words could not be found in the dictionary of 0 words and are highlighted below:
392px   600px   637px   add   Additionally   adjusted   align   All   alt   an   and   application   are   as   attachment   audio   autostart   Basic   be   being   bmp   by   chemical   class   Configuration   content   Content   Contents   could   default   defaults   dependent   Dependent   desc   different   don   dvi   em   Embed   embed   enable   enabled   Enabling   example   Examples   examples   experimental   False   file   Flash   flash   fli   float   following   For   for   from   Further   give   handled   has   have   height   Help   hidden   high   However   html   if   If   image   in   In   included   ins   into   is   isn   Keyword   keywords   kind   Known   like   line   lines   loop   macro   menu   middle   midi   mimetype   mimetypes   mm   Moin   moin   move   movies   mpeg   ms   msvideo   need   new   New   None   Object   object   objects   Of   of   ogg   On   on   only   op   option   Optional   options   or   page   pagename   parameter   parameters   Parameters   params   parsing   pdb   pdf   photoshop   play   plug   postscript   protect   pt   px   py   quality   quicktime   rather   Realistic   reasons   related   remove   repeat   section   security   see   set   shockwave   should   shown   Since   site   size   some   specifically   standard   such   support   supported   supports   svg   swf   syntax   Syntax   Table   target   testpdf   text   the   things   This   this   those   tiff   to   transclusion   True   true   types   under   unicode   unit   units   uploaded   Usage   use   used   usually   video   visio   vnd   vrml   wav   width   wiki   wikiconfig   will   world   xhtml   xml   xss   yet   you   You   your  

Clear message
location: 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. 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:

Syntax & Usage

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

Keyword Parameters:

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

  width = None, float
  height = None, float
  pagename = None, unicode
  align = middle
  alt = ''
  play = False
  loop = False
  quality = high
  op = True
  repeat = False
  autostart = False
  menu = True
  hidden = False

All mimetypes support width & height parameters.

(!) Since 1.7 MoinMoin supports parsing of units. Known units for the parameter width and height are px, em, pt, in, mm and %.

If you don't give a unit the default of px will be used.

Additionally:

Examples

Basic examples:

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

Realistic examples:

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