Media
Description
.md markdown syntax
Standard Media Reference
Media with Dimensions
<!-- adf:media width="500" height="300" -->
Media with Custom Attributes
<!-- adf:media collection="MediaServicesSample" occurrenceKey="occurrence-key" -->
.adf-schema.json schema
{
"type": "object",
"properties": {
"type": {
"type": "string",
"const": "media"
},
"attrs": {
"type": "object",
"properties": {
"id": {
"type": "string",
"description": "Unique media identifier"
},
"type": {
"type": "string",
"enum": ["file", "link", "external"],
"description": "Media type"
},
"collection": {
"type": "string",
"description": "Media collection name"
},
"occurrenceKey": {
"type": "string",
"description": "Media occurrence key"
},
"width": {
"type": "number",
"description": "Media width in pixels"
},
"height": {
"type": "number",
"description": "Media height in pixels"
},
"alt": {
"type": "string",
"description": "Alternative text for accessibility"
}
},
"required": ["id", "type", "collection"],
"additionalProperties": true
}
},
"required": ["type", "attrs"]
}Examples
Image References
Document Attachments
Media with Alt Text
Media Collections
Sized Media
Video Media
Media in Documentation
Media with Captions
External Media References
Media in Lists
Media Galleries
Media with Error Handling
Last updated