Commit 234cd785 authored by Tobias Buckdahn's avatar Tobias Buckdahn

Tech collections restructured and icons added

parent 689fa6ca
---
title: All Rotations
title: Rotations
image: image.png
filter: filter-rotations
......@@ -20,84 +20,76 @@ content:
form:
name: filter-rotations
id: items-filter
classes: form-inline
classes: form-inline justify-content-center justify-content-md-between
fields:
-
name: rotation_type
label: Rotation Type
type: select
id: rotation_type
default: all
options:
'all': 'All Types'
'stud_tilt': 'Stud Tilt'
'stud_twist': 'Stud Twist'
# 'axle_tilt': 'Axle Tilt'
-
name: rotation_angle
label: Rotation Angle
type: select
id: rotation_angle
default: all
options:
'all': 'All Angles'
'45': '45°'
'90': '90°'
'180': '180°'
'all-1': '-------'
'_0-45': '00° - 45°'
'_45-90': '45° - 90°'
'_90-180': '90° - 180°'
# -
# name: order
# #label: Order By
# type: select
# id: order
# outerclasses: new-line
# default: date
# options:
# 'newest': 'Newest'
# 'oldest': 'Oldest'
# 'last_modified': 'Last modified'
# 'sep1' : '-------------'
# 'biggest': 'Biggest'
# 'smallest': 'Smallest'
# 'most_parts': 'Most Parts'
# 'least_parts': 'Least Parts'
# 'sep2' : '-------------'
# 'random': 'Random'
-
name: order_by
label: Order By
type: select
id: order_by
outerclasses: new-line
default: date
options:
'title': 'by Title'
'date': 'by Date Added'
'modified': 'by Date Modified'
'header.taxonomy.partcount': 'by Part Count'
'random': 'in Random Order'
name: filter
type: fieldset
id: filter
classes: form-inline
fields:
-
name: rotation_type
label: Rotation Type
type: select
id: rotation_type
classes: custom-select
default: all
options:
'all': 'All Types'
'stud_tilt': 'Stud Tilt'
'stud_twist': 'Stud Twist'
# 'axle_tilt': 'Axle Tilt'
-
name: rotation_angle
label: Rotation Angle
type: select
id: rotation_angle
classes: custom-select
default: all
options:
'all': 'All Angles'
'45': '45°'
'90': '90°'
'180': '180°'
'all-1': '-------'
'_0-45': '00° - 45°'
'_45-90': '45° - 90°'
'_90-180': '90° - 180°'
-
name: order_dir
label: Order Direction
type: select
id: order_dir
default: desc
options:
'asc': 'Ascending'
'desc': 'Descending'
name: sorting
type: fieldset
id: sorting
classes: form-inline
fields:
-
name: order_by
label: Order By
type: select
id: order_by
classes: custom-select
default: 'header.taxonomy.partcount'
options:
'title': 'by Title'
'date': 'by Date Added'
'modified': 'by Date Modified'
'header.taxonomy.partcount': 'by Part Count'
'random': 'in Random Order'
-
name: order_dir
label: Order Direction
type: select
id: order_dir
classes: custom-select
default: 'asc'
options:
'asc': 'Up'
'desc': 'Down'
buttons:
submit:
value: Filter
process:
# filter: true
redirect: >-
/techs/collections/rotations/{%
set rotation_angle = form.value.rotation_angle %}{%
......@@ -114,7 +106,7 @@ form:
set filter = 'function:' ~ rotation_type ~ '/' %}{%
endif %}{%
endif %}{{ filter }}{%
set order = form.value.order %}{%
set order_by = form.value.order_by %}{%
set order_dir = form.value.order_dir %}{%
set ordering = 'orderby:' ~ order_by ~ '/orderdir:' ~ order_dir %}{{ ordering }}
......
---
title: All Offsets
title: Offsets
image: image.png
filter: filter-offsets
......@@ -20,30 +20,66 @@ content:
form:
name: filter-offsets
id: items-filter
classes: form-inline justify-content-center justify-content-md-between
fields:
-
name: offset_type
label: Type
type: select
id: offset_type
options:
'all': '- All -'
'stud_lift': 'Stud Lift'
'stud_shift': 'Stud Shift'
'axle_shift': 'Axle Shift'
-
name: offset_length
label: Length
type: select
id: offset_length
options:
'all': '- All -'
'1' : '01 LDU'
'2' : '02 LDU'
'5' : '05 LDU | 1/4 Stud'
'10' : '10 LDU | 1/2 Stud'
name: filter
type: fieldset
id: filter
classes: form-inline
fields:
-
name: offset_type
label: Type
type: select
id: offset_type
classes: custom-select
options:
'all': 'All Types'
'stud_lift': 'Stud Lift'
'stud_shift': 'Stud Shift'
'axle_shift': 'Axle Shift'
-
name: offset_length
label: Length
type: select
id: offset_length
classes: custom-select
options:
'all': 'All Lengths'
'10' : '1/2 Stud'
'5' : '1/4 Stud'
'2' : '1/10 Stud'
'1' : '1/20 Stud'
-
name: sorting
type: fieldset
id: sorting
classes: form-inline
fields:
-
name: order_by
label: Order By
type: select
id: order_by
classes: custom-select
default: 'header.taxonomy.partcount'
options:
'title': 'by Title'
'date': 'by Date Added'
'modified': 'by Date Modified'
'header.taxonomy.partcount': 'by Part Count'
'random': 'in Random Order'
-
name: order_dir
label: Order Direction
type: select
id: order_dir
classes: custom-select
default: 'asc'
options:
'asc': 'Up'
'desc': 'Down'
buttons:
submit:
value: Filter
......@@ -55,14 +91,17 @@ form:
set offset_type = form.value.offset_type %}{%
if offset_type == 'all' %}{%
if offset_length != 'all' %}{%
set filter = 'offset_length:' ~ offset_length %}{%
set filter = 'offset_length:' ~ offset_length ~ '/' %}{%
endif %}{%
else %}{%
if offset_length != 'all' %}{%
set filter = offset_type ~ '_length:' ~ offset_length %}{%
set filter = offset_type ~ '_length:' ~ offset_length ~ '/' %}{%
else %}{%
set filter = 'function:' ~ offset_type %}{%
set filter = 'function:' ~ offset_type ~ '/' %}{%
endif %}{%
endif %}{{ filter }}
endif %}{{ filter }}{%
set order_by = form.value.order_by %}{%
set order_dir = form.value.order_dir %}{%
set ordering = 'orderby:' ~ order_by ~ '/orderdir:' ~ order_dir %}{{ ordering }}
---
\ No newline at end of file
---
title: Patterns
image: image.png
filter: filter-patterns
content:
items:
- '@taxonomy.function': pattern_1D
- '@taxonomy.function': pattern_2D
- '@taxonomy.function': pattern_3D
filter:
published: true
type: 'tech'
order:
by: date
dir: desc
limit: 12
pagination: true
form:
name: filter-patterns
id: items-filter
classes: form-inline justify-content-center justify-content-md-between
fields:
-
name: filter
type: fieldset
id: filter
classes: form-inline
fields:
-
name: pattern_type
label: Type
type: select
id: pattern_type
classes: custom-select
options:
'all': 'All Types'
'1D': '1D | Linear'
'2D': '2D | Planar'
'3D': '3D | Spatial'
-
name: pattern_segsize
label: Parts
type: select
id: pattern_segsize
classes: custom-select
options:
'all': 'All Sizes'
'1': '1 per segment'
'2': '2 per segment'
'3': '3 per segment'
'4': '4 per segment'
'5': '5 per segment'
'6': '6 per segment'
'7': '7 per segment'
'8': '8 per segment'
'_9up': 'more parts'
-
name: sorting
type: fieldset
id: sorting
classes: form-inline
fields:
-
name: order_by
label: Order By
type: select
id: order_by
classes: custom-select
default: 'header.taxonomy.partcount'
options:
'title': 'by Title'
'date': 'by Date Added'
'modified': 'by Date Modified'
'header.taxonomy.partcount': 'by Part Count'
'random': 'in Random Order'
-
name: order_dir
label: Order Direction
type: select
id: order_dir
classes: custom-select
default: 'asc'
options:
'asc': 'Up'
'desc': 'Down'
buttons:
submit:
value: Filter
process:
redirect: >-
/techs/collections/patterns/{%
set pattern_segsize = form.value.pattern_segsize %}{%
set pattern_segsize = pattern_segsize|slice(0,3) == 'all' ? 'all' : pattern_segsize %}{%
set pattern_type = form.value.pattern_type %}{%
if pattern_type == 'all' %}{%
if pattern_segsize != 'all' %}{%
set filter = 'pattern_segsize:' ~ pattern_segsize ~ '/' %}{%
endif %}{%
else %}{%
if pattern_segsize != 'all' %}{%
set filter = 'pattern_' ~ pattern_type ~ '_segsize:' ~ pattern_segsize ~ '/' %}{%
else %}{%
set filter = 'function:pattern_' ~ pattern_type ~ '/' %}{%
endif %}{%
endif %}{{ filter }}{%
set order_by = form.value.order_by %}{%
set order_dir = form.value.order_dir %}{%
set ordering = 'orderby:' ~ order_by ~ '/orderdir:' ~ order_dir %}{{ ordering }}
---
\ No newline at end of file
---
title: All Shapes
title: Shapes
image: image.png
filter: filter-shapes
......@@ -19,43 +19,79 @@ content:
form:
name: filter-shapes
id: items-filter
classes: form-inline justify-content-center justify-content-md-between
fields:
-
name: shape_type
label: Type
type: select
id: shape_type
options:
'all': '- All -'
'all-1': '-----------------'
'2D': '2D | All Forms'
'2D:3': '2D.3 | Triangle'
'2D:4': '2D.4 | Rectangle'
'2D:5': '2D.5 | Pentagon'
'2D:6': '2D.6 | Hexagon'
'2D:7': '2D.7 | Heptagon'
'2D:8': '2D.6 | Octagon'
'2D:_9up': '2D.+ | Circle'
'all-2': '-----------------'
'3D': '3D | All Bodies'
name: filter
type: fieldset
id: filter
classes: form-inline
fields:
-
name: shape_type
label: Type
type: select
id: shape_type
classes: custom-select
options:
'all': 'All Types'
'all-1': '-----------------'
'2D': '2D | All Forms'
'2D:3': '2D.3 | Triangle'
'2D:4': '2D.4 | Rectangle'
'2D:5': '2D.5 | Pentagon'
'2D:6': '2D.6 | Hexagon'
'2D:7': '2D.7 | Heptagon'
'2D:8': '2D.6 | Octagon'
'2D:_9up': '2D.+ | Circle'
'all-2': '-----------------'
'3D': '3D | All Bodies'
-
name: shape_segsize
label: Parts
type: select
id: shape_segsize
classes: custom-select
options:
'all': 'All Sizes'
'1': '1 per segment'
'2': '2 per segment'
'3': '3 per segment'
'4': '4 per segment'
'5': '5 per segment'
'6': '6 per segment'
'7': '7 per segment'
'8': '8 per segment'
'_9up': 'more parts'
-
name: shape_segsize
label: Parts
type: select
id: shape_segsize
options:
'all': '- All -'
'1': '1 per segment'
'2': '2 per segment'
'3': '3 per segment'
'4': '4 per segment'
'5': '5 per segment'
'6': '6 per segment'
'7': '7 per segment'
'8': '8 per segment'
'_9up': 'more parts'
name: sorting
type: fieldset
id: sorting
classes: form-inline
fields:
-
name: order_by
label: Order By
type: select
id: order_by
classes: custom-select
default: 'header.taxonomy.partcount'
options:
'title': 'by Title'
'date': 'by Date Added'
'modified': 'by Date Modified'
'header.taxonomy.partcount': 'by Part Count'
'random': 'in Random Order'
-
name: order_dir
label: Order Direction
type: select
id: order_dir
classes: custom-select
default: 'asc'
options:
'asc': 'Up'
'desc': 'Down'
buttons:
submit:
value: Filter
......@@ -75,15 +111,18 @@ form:
endif %}{%
else %}{%
if shape_segsize == 'all' and shape_segments == 'all' %}{%
set filter = 'function:' ~ shape_type %}{%
set filter = 'function:' ~ shape_type ~ '/' %}{%
else %}{%
if shape_segments != 'all' %}{%
set filter = shape_type ~ '_segments:' ~ shape_segments~ '/' %}{%
endif %}{%
if shape_segsize != 'all' %}{%
set filter = filter ~ shape_type ~ '_segsize:' ~ shape_segsize %}{%
set filter = filter ~ shape_type ~ '_segsize:' ~ shape_segsize ~ '/' %}{%
endif %}{%
endif %}{%
endif %}{{ filter }}
endif %}{{ filter }}{%
set order_by = form.value.order_by %}{%
set order_dir = form.value.order_dir %}{%
set ordering = 'orderby:' ~ order_by ~ '/orderdir:' ~ order_dir %}{{ ordering }}
---
\ No newline at end of file
---
title: Collections
title: Explore
routes:
aliases:
- '/techs/explore'
- '/home'
content:
items:
- '@page.descendants': '/techs/collections/function'
- '@page.descendants': '/techs/collections/rotations'
- '@page.descendants': '/techs/collections/offsets'
- '@page.descendants': '/techs/collections/patterns'
- '@page.descendants': '/techs/collections/shapes'
- '@page.descendants': '/techs/collections/parts'
- '@page.descendants': '/techs/collections/size'
- '@page.descendants': '/techs/collections/time'
......
---
title: Functions
content:
items:
- '@self.descendants'
filter:
published: true
type: 'collection'
---
\ No newline at end of file
---
title: All Patterns
image: image.png
filter: filter-patterns
content:
items:
- '@taxonomy.function': pattern_1D
- '@taxonomy.function': pattern_2D
- '@taxonomy.function': pattern_3D
filter:
published: true
type: 'tech'
order:
by: date
dir: desc
limit: 12
pagination: true
form:
name: filter-patterns
id: items-filter
fields:
-
name: pattern_type
label: Type