feat(nutrition): add food_items references to categories data and template
This commit is contained in:
parent
8f61cef526
commit
98234c0d16
File diff suppressed because it is too large
Load Diff
|
|
@ -61,6 +61,37 @@
|
|||
"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": [
|
||||
|
|
@ -110,6 +141,12 @@
|
|||
"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": {
|
||||
|
|
|
|||
Loading…
Reference in New Issue