From 45da723ee245f189a31f4a45ae6068d554d9284d Mon Sep 17 00:00:00 2001 From: ShivaniKhaire Date: Tue, 3 Nov 2026 17:19:48 +0530 Subject: [PATCH] feat(nutrition): set default template to food items and hide redundant food_name presentation card --- m0031-nutrition/module.json | 5 +++-- m0031-nutrition/templates/m0031_ct0002.json | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/m0031-nutrition/module.json b/m0031-nutrition/module.json index 4f527b4..44eae2a 100644 --- a/m0031-nutrition/module.json +++ b/m0031-nutrition/module.json @@ -3,11 +3,12 @@ "description": "Traditional Chinese dietary therapy, food thermal energetics (cold, cool, neutral, warm, hot), and therapeutic effects.", "short_description": "TCM dietary therapy and food thermal energetics.", "code": "m0031", - "default_template_code": "m0031_ct0001", + "default_template_code": "m0031_ct0002", "kind": "nutrition", "metadata": { "version": 1, - "status": "draft" + "status": "draft", + "entry_template_code": "m0031_ct0002" }, "content_mapping": [ { diff --git a/m0031-nutrition/templates/m0031_ct0002.json b/m0031-nutrition/templates/m0031_ct0002.json index 65f1c2e..c334e39 100644 --- a/m0031-nutrition/templates/m0031_ct0002.json +++ b/m0031-nutrition/templates/m0031_ct0002.json @@ -163,7 +163,7 @@ { "attribute_key": "m0031_ct0002.food_name", "empty_behavior": "hide", - "visibility": "show", + "visibility": "hide", "display_order": 0 }, { -- 2.34.1