File field mapping
Map WordPress ACF file fields to structured content assets in Optimizely CMP for efficient file management.
Optimizely Content Marketing Platform (CMP) supports mapping the ACF File field to the structured content Asset type field.
JSON example
{
"core": {
"key": "acf_file_field",
"name": "ACF File Field",
"is_list": false,
"is_required": false,
"need_internationalization": false,
"min_list_length": 1,
"max_list_length": -1,
"field_type": "library-asset",
"source_id": null,
"source_metadata": "{\"is_custom_post_type_field\": true}", // It is important to identify source_metadata as custom field
"order_index": 8,
"help_text": null,
"editor_metadata": null
},
"allowed_types": ["raw_file"],
"default_values": null
}Updated 11 days ago