160 lines
4.2 KiB
JSON
160 lines
4.2 KiB
JSON
{
|
|
"name": "nutrition_category_content",
|
|
"code": "m0031_ct0003",
|
|
"description": "Nutrition categories classification",
|
|
"content_kind": "nutrition",
|
|
"is_searchable": true,
|
|
"is_filterable": true,
|
|
"attribute_prefix_code": "m0031_ct0003",
|
|
"attribute_prefix_name": "nutrition_category",
|
|
"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": "Name",
|
|
"code": "name",
|
|
"data_type": "text",
|
|
"default": "",
|
|
"definition_kind": "scalar",
|
|
"is_multivalue": false,
|
|
"is_required": true,
|
|
"is_filterable": true,
|
|
"is_searchable": true
|
|
},
|
|
{
|
|
"name": "Content Count",
|
|
"code": "content_count",
|
|
"data_type": "number",
|
|
"default": 0,
|
|
"definition_kind": "scalar",
|
|
"is_multivalue": false
|
|
},
|
|
{
|
|
"name": "Content Label",
|
|
"code": "content_label",
|
|
"data_type": "text",
|
|
"default": "items",
|
|
"definition_kind": "scalar",
|
|
"is_multivalue": false
|
|
},
|
|
{
|
|
"name": "Sort Order",
|
|
"code": "sort_order",
|
|
"data_type": "number",
|
|
"default": 0,
|
|
"definition_kind": "scalar",
|
|
"is_multivalue": false
|
|
},
|
|
{
|
|
"name": "Food Items",
|
|
"code": "food_items",
|
|
"data_type": "json",
|
|
"multivalue": true,
|
|
"default": [],
|
|
"definition_kind": "scalar",
|
|
"is_multivalue": true,
|
|
"metadata": {
|
|
"value_contract": {
|
|
"kind": "content_ref",
|
|
"contract_version": "1.0",
|
|
"reference_type": "content_ref",
|
|
"target_module_code": "m0031",
|
|
"target_template_code": "m0031_ct0002",
|
|
"cardinality": "many",
|
|
"authoring_identity": "source_code",
|
|
"persisted_identity": "source_key",
|
|
"runtime_identity": "content_id",
|
|
"resolution_pipeline": "source_code -> source_key -> content_id",
|
|
"rules": {
|
|
"explicit_reference_required_when_value_present": true,
|
|
"plain_text_allowed": false,
|
|
"source_code_authoring_only": true,
|
|
"source_key_persisted_only": true,
|
|
"content_id_runtime_only": true,
|
|
"do_not_infer_reference_from_label": true
|
|
}
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"presentation_contracts": [
|
|
{
|
|
"client_type": "mobile",
|
|
"version_no": 1,
|
|
"is_active": true,
|
|
"mode": "collection",
|
|
"renderers": {
|
|
"collection": "nutrition_category_collection",
|
|
"collection_item": "nutrition_category_card",
|
|
"detail": "nutrition_category_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.name",
|
|
"empty_behavior": "hide",
|
|
"visibility": "show",
|
|
"display_order": 10
|
|
},
|
|
{
|
|
"attribute_key": "m0031_ct0003.content_count",
|
|
"empty_behavior": "hide",
|
|
"visibility": "show",
|
|
"display_order": 0
|
|
},
|
|
{
|
|
"attribute_key": "m0031_ct0003.content_label",
|
|
"empty_behavior": "hide",
|
|
"visibility": "show",
|
|
"display_order": 0
|
|
},
|
|
{
|
|
"attribute_key": "m0031_ct0003.sort_order",
|
|
"empty_behavior": "hide",
|
|
"visibility": "hide"
|
|
},
|
|
{
|
|
"attribute_key": "m0031_ct0003.food_items",
|
|
"empty_behavior": "hide",
|
|
"visibility": "show",
|
|
"display_order": 20
|
|
}
|
|
],
|
|
"metadata": {
|
|
"content_ref_contract_version": "1.0",
|
|
"authoring_identity": "source_code",
|
|
"navigation_identity": "content_id"
|
|
}
|
|
}
|
|
]
|
|
}
|