From 38a31d9fa648de4ea9467bc9b8f5109731eb686e Mon Sep 17 00:00:00 2001 From: Nico Schottelius Date: Sat, 11 Jun 2022 19:22:00 +0200 Subject: [PATCH] Enhance the product model with up to 6 features --- models/product.ini | 75 ++++++++++++++++++++++++++++-------------- templates/product.html | 26 ++++++++++++++- 2 files changed, 75 insertions(+), 26 deletions(-) diff --git a/models/product.ini b/models/product.ini index a46efc9..2affbcd 100644 --- a/models/product.ini +++ b/models/product.ini @@ -66,30 +66,6 @@ label = Link type = url width = 1/4 -[fields.feature1_title] -label = Feature1 Title -type = string - -[fields.feature2_title] -label = Feature2 Title -type = string - -[fields.feature3_title] -label = Feature3 Title -type = string - -[fields.feature1_text] -label = Feature1 Text -type = markdown - -[fields.feature2_text] -label = Feature2 Text -type = markdown - -[fields.feature3_text] -label = Feature3 Text -type = markdown - [fields.content1_text] label = Content1 Text type = markdown @@ -201,4 +177,53 @@ type = url [children] model = product -order_by = title \ No newline at end of file +order_by = title + + +[fields.feature1_title] +label = Feature1 Title +type = string + +[fields.feature2_title] +label = Feature2 Title +type = string + +[fields.feature3_title] +label = Feature3 Title +type = string + +[fields.feature4_title] +label = Feature4 Title +type = string + +[fields.feature5_title] +label = Feature5 Title +type = string + +[fields.feature6_title] +label = Feature6 Title +type = string + +[fields.feature1_text] +label = Feature1 Text +type = markdown + +[fields.feature2_text] +label = Feature2 Text +type = markdown + +[fields.feature3_text] +label = Feature3 Text +type = markdown + +[fields.feature4_text] +label = Feature4 Text +type = markdown + +[fields.feature5_text] +label = Feature5 Text +type = markdown + +[fields.feature6_text] +label = Feature6 Text +type = markdown diff --git a/templates/product.html b/templates/product.html index 0b2b44f..de6b400 100644 --- a/templates/product.html +++ b/templates/product.html @@ -37,6 +37,30 @@ +
+
+
+
+ +
+
+ +
+
+ +
+
+
+ {% if this.description2 %}
@@ -111,7 +135,7 @@
- + {% if this.description4 %}