Browse Source

description 6 added to a product

slider
Nico Schottelius 2 years ago
parent
commit
748bbfddef
  1. 8
      content/u/products/demo-product/contents.lr
  2. 4
      models/product.ini
  3. 14
      templates/product.html

8
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

4
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

14
templates/product.html

@ -120,6 +120,16 @@
</div>
</div>
{% if this.description5 %}
<div class="container">
<div class="row mb-3">
<div class="col-md-12">
{{ this.description5 }}
</div>
</div>
</div>
{% endif %}
<div class="container">
<div class="row mb-3">
<div class="col-md-4">
@ -160,11 +170,11 @@
<hr/>
{% if this.description5 %}
{% if this.description6 %}
<div class="container">
<div class="row mb-3">
<div class="col-md-12">
{{ this.description5 }}
{{ this.description6 }}
</div>
</div>
</div>

Loading…
Cancel
Save