From 748bbfddeff8517db87b79fc14c2e3f17b20ad13 Mon Sep 17 00:00:00 2001 From: Nico Schottelius Date: Mon, 23 Mar 2020 22:04:38 +0100 Subject: [PATCH] description 6 added to a product --- content/u/products/demo-product/contents.lr | 8 +++++++- models/product.ini | 4 ++++ templates/product.html | 14 ++++++++++++-- 3 files changed, 23 insertions(+), 3 deletions(-) diff --git a/content/u/products/demo-product/contents.lr b/content/u/products/demo-product/contents.lr index 1b53763..2680dde 100644 --- a/content/u/products/demo-product/contents.lr +++ b/content/u/products/demo-product/contents.lr @@ -36,7 +36,13 @@ Description content --- description5: -## This is the fifth markdown description block +## This is the 5. markdown description block + +Description content +--- +description6: + +## This is the 6. markdown description block Description content diff --git a/models/product.ini b/models/product.ini index 62f3af2..4e49c54 100644 --- a/models/product.ini +++ b/models/product.ini @@ -57,6 +57,10 @@ type = markdown label = Description 5 type = markdown +[fields.description6] +label = Description 6 +type = markdown + [fields.link] label = Link type = url diff --git a/templates/product.html b/templates/product.html index 1ce693f..a88a222 100644 --- a/templates/product.html +++ b/templates/product.html @@ -120,6 +120,16 @@ +{% if this.description5 %} +
+
+
+ {{ this.description5 }} +
+
+
+{% endif %} +
@@ -160,11 +170,11 @@
-{% if this.description5 %} +{% if this.description6 %}
- {{ this.description5 }} + {{ this.description6 }}