acupedia-content/m0031-nutrition/templates/m0031_ct0003.json

93 lines
2.2 KiB
JSON

{
"name": "nutrition_effect_content",
"code": "m0031_ct0003",
"description": "",
"content_kind": "nutrition",
"attribute_prefix_code": "m0031_ct0003",
"attribute_prefix_name": "nutrition_effect",
"attribute_defs": [
{
"name": "Source ID",
"code": "source_id",
"data_type": "text",
"default": "",
"definition_kind": "scalar",
"is_multivalue": false
},
{
"name": "Code",
"code": "code",
"data_type": "text",
"default": "",
"definition_kind": "scalar",
"is_multivalue": false,
"is_required": true,
"is_filterable": true,
"is_searchable": true
},
{
"name": "Effect Name",
"code": "effect_name",
"data_type": "text",
"default": "",
"definition_kind": "scalar",
"is_multivalue": false,
"is_required": true,
"is_filterable": true,
"is_searchable": true
},
{
"name": "Sort Order",
"code": "sort_order",
"data_type": "number",
"default": 0,
"definition_kind": "scalar",
"is_multivalue": false
}
],
"presentation_contracts": [
{
"client_type": "mobile",
"version_no": 1,
"is_active": true,
"mode": "collection",
"renderers": {
"collection": "nutrition_effect_collection",
"collection_item": "nutrition_effect_card",
"detail": "nutrition_effect_detail"
},
"link": {
"renderer": "content_link"
},
"attributes": [
{
"attribute_key": "m0031_ct0003.source_id",
"empty_behavior": "hide",
"visibility": "hide"
},
{
"attribute_key": "m0031_ct0003.code",
"empty_behavior": "hide",
"visibility": "hide"
},
{
"attribute_key": "m0031_ct0003.effect_name",
"empty_behavior": "hide",
"visibility": "show",
"display_order": 0
},
{
"attribute_key": "m0031_ct0003.sort_order",
"empty_behavior": "hide",
"visibility": "hide"
}
],
"metadata": {
"content_ref_contract_version": "1.0",
"authoring_identity": "source_code",
"navigation_identity": "content_id"
}
}
]
}