DokuWiki

It's better when it's simple

User Tools

Site Tools


plugin:struct:type_media

Struct PluginTypes

Struct Plugin: Type Media

The Media type accepts internal and external media files (like images, video or PDF).

Configuration

The following configuration is available in addition to the basic type configuration:

Config Format Description
mime string A comma separated list of MIME types to accept. MIME types can be specified as beginning part only (like image/ to allow all images)
width int The pixel width to use when embedding media in the page output
height int The pixel height to use when embedding media in the page output. Will be auto computed when not specified
agg_width int The pixel width to use when embedding media in aggregations. Defaults to width
agg_height int The pixel height to use when embedding media in aggregations. Defaults to height

for mime types refer to Media type.

plugin/struct/type_media.txt · Last modified: 2023-01-08 18:59 by Aleksandr

Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Share Alike 4.0 International
CC Attribution-Share Alike 4.0 International Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki