Enhance the product model with up to 6 features

This commit is contained in:
Nico Schottelius 2022-06-11 19:22:00 +02:00
parent e2caff60c2
commit 38a31d9fa6
2 changed files with 75 additions and 26 deletions

View file

@ -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
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

View file

@ -37,6 +37,30 @@
</div>
</div>
</section>
<section class="section">
<div class="container">
<div class="row">
<div class="col-sm-4 col-lg-4 mb-5 mb-lg-0">
<div class="featured-box">
<h3>{{ this.feature4_title }}</h3>
<p class="text-3">{{ this.feature4_text }}</p>
</div>
</div>
<div class="col-sm-4 col-lg-4 mb-5 mb-lg-0">
<div class="featured-box">
<h3>{{ this.feature5_title }}</h3>
<p class="text-3">{{ this.feature5_text }}</p>
</div>
</div>
<div class="col-sm-4 col-lg-4 mb-5 mb-sm-0">
<div class="featured-box">
<h3>{{ this.feature6_title }}</h3>
<p class="text-3">{{ this.feature6_text }}</p>
</div>
</div>
</div>
</section>
{% if this.description2 %}
<section class="section">
@ -111,7 +135,7 @@
</div>
</div>
<hr/>
</div>
</div>
{% if this.description4 %}
<section class="section">