plugin:struct:type_media
⇐ Struct Plugin ⇐ Types
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