Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Better examples for the pages and files sections #16

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion environments/lab/content/sections/files/camera.glb.en.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@ Sort: 5

----

Template: undeletable-file

----

Author:
-
text: Virtual Museums of Małopolska
Expand All @@ -16,4 +20,4 @@ License:

----

Uuid: tcscjievg3lnveud
Uuid: tcscjievg3lnveud
4 changes: 4 additions & 0 deletions environments/lab/site/blueprints/files/undeletable-file.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
title: Undeletable file

options:
delete: false
15 changes: 15 additions & 0 deletions environments/lab/site/blueprints/pages/files-section.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@ tabs:
listWithSearch:
type: files
search: true
listWithBatch:
type: files
batch: true

cardlets:
sections:
Expand All @@ -33,6 +36,10 @@ tabs:
type: files
layout: cardlets
search: true
cardletsWithBatch:
type: files
layout: cardlets
batch: true

cards:
sections:
Expand All @@ -51,6 +58,10 @@ tabs:
type: files
layout: cards
search: true
cardsWithBatch:
type: files
layout: cards
batch: true

table:
sections:
Expand All @@ -69,6 +80,10 @@ tabs:
type: files
layout: table
search: true
tableWithBatch:
type: files
layout: table
batch: true

cardSizes:
sections:
Expand Down
139 changes: 111 additions & 28 deletions environments/lab/site/blueprints/pages/pages-section.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,96 +5,159 @@ tabs:
sections:
list:
type: pages
template: page
templates:
- page
- undeletable-page
listWithInfo:
type: pages
info: "{{ page.slug }}"
template: page
templates:
- page
- undeletable-page
listWithoutImage:
type: pages
layout: list
image: false
template: page
templates:
- page
- undeletable-page
listWithSearch:
type: pages
template: page
templates:
- page
- undeletable-page
search: true
listWithBatch:
type: pages
templates:
- page
- undeletable-page
batch: true

cardlets:
sections:
cardlets:
type: pages
layout: cardlets
template: page
templates:
- page
- undeletable-page
cardletsWithInfo:
type: pages
layout: cardlets
info: "{{ page.slug }}"
template: page
templates:
- page
- undeletable-page
cardletsWithoutImage:
type: pages
layout: cardlets
image: false
template: page
templates:
- page
- undeletable-page
cardletsWithSearch:
type: pages
layout: cardlets
template: page
templates:
- page
- undeletable-page
search: true
cardletsWithBatch:
type: pages
layout: cardlets
templates:
- page
- undeletable-page
batch: true

cards:
sections:
cards:
type: pages
layout: cards
template: page
templates:
- page
- undeletable-page
cardsWithInfo:
type: pages
layout: cards
info: "{{ page.slug }}"
template: page
templates:
- page
- undeletable-page
cardsWithoutImage:
type: pages
layout: cards
image: false
template: page
templates:
- page
- undeletable-page
cardsWithSearch:
type: pages
layout: cards
template: page
templates:
- page
- undeletable-page
search: true
cardsWithBatch:
type: pages
layout: cards
templates:
- page
- undeletable-page
batch: true

table:
sections:
table:
type: pages
layout: table
template: page
templates:
- page
- undeletable-page
tableWithInfo:
type: pages
layout: table
info: "{{ page.slug }}"
template: page
templates:
- page
- undeletable-page
tableWithoutImage:
type: pages
layout: table
image: false
template: page
templates:
- page
- undeletable-page
tableWithoutTitle:
type: pages
layout: table
text: false
template: page
templates:
- page
- undeletable-page
info: "{{ page.slug }}"
tableWithSearch:
type: pages
layout: table
template: page
templates:
- page
- undeletable-page
search: true
tableWithBatch:
type: pages
layout: table
templates:
- page
- undeletable-page
batch: true
tableWithCustomDefaultColumns:
type: pages
layout: table
template: page
templates:
- page
- undeletable-page
text: "Custom {{ page.title }}"
info: "{{ page.slug }}"
columns:
Expand All @@ -107,7 +170,9 @@ tabs:
tableWithCustomDefaultColumnValues:
type: pages
layout: table
template: page
templates:
- page
- undeletable-page
columns:
title:
value: Custom Title Value
Expand All @@ -121,25 +186,33 @@ tabs:
type: pages
layout: cards
size: tiny
template: page
templates:
- page
- undeletable-page

cardsSmall:
type: pages
layout: cards
size: small
template: page
templates:
- page
- undeletable-page

cardsMedium:
type: pages
layout: cards
size: medium
template: page
templates:
- page
- undeletable-page

cardsLarge:
type: pages
layout: cards
size: large
template: page
templates:
- page
- undeletable-page

imageSettings:
sections:
Expand All @@ -148,33 +221,43 @@ tabs:
layout: cards
image:
cover: true
template: page
templates:
- page
- undeletable-page
backBlack:
type: pages
layout: cards
image:
back: black
template: page
templates:
- page
- undeletable-page
backWhite:
type: pages
layout: cards
image:
back: white
template: page
templates:
- page
- undeletable-page
ratio4by5:
type: pages
layout: cards
image:
ratio: 4/5
cover: true
template: page
templates:
- page
- undeletable-page
ratio16by9:
type: pages
layout: cards
image:
ratio: 16/9
cover: true
template: page
templates:
- page
- undeletable-page
invalid:
sections:
invalid:
Expand Down
4 changes: 4 additions & 0 deletions environments/lab/site/blueprints/pages/undeletable-page.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
title: Undeletable page

options:
delete: false