Last active
November 18, 2016 14:21
-
-
Save jadwigo/ac94282b0b27a3e6b00ca01455d5ad9b to your computer and use it in GitHub Desktop.
FAQ section in bolt
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| pages: | |
| name: Pages | |
| singular_name: Page | |
| fields: | |
| title: | |
| type: text | |
| class: large | |
| group: content | |
| slug: | |
| type: slug | |
| uses: title | |
| image: | |
| type: image | |
| teaser: | |
| type: textarea | |
| height: 150px | |
| label: SEO omschrijving (max. 156 karakters) | |
| body: | |
| type: html | |
| height: 300px | |
| infotype: | |
| type: select | |
| label: kies eventueel een informatie categorie | |
| multiple: false | |
| values: | |
| bagage-en-vervoer: "Bagage en Vervoer" | |
| trouwen: "Trouwen" | |
| bier: "Bier" | |
| template: | |
| type: templateselect | |
| filter: '*.twig' | |
| taxonomy: [ groups ] | |
| recordsperpage: 100 | |
| icon_many: "fa:file-text-o" | |
| icon_one: "fa:file-text-o" | |
| default_status: publish | |
| informatie: | |
| name: Informatie | |
| singular_name: Info | |
| fields: | |
| title: | |
| type: text | |
| class: large | |
| group: content | |
| slug: | |
| type: slug | |
| uses: title | |
| image: | |
| type: image | |
| teaser: | |
| type: html | |
| height: 150px | |
| body: | |
| type: html | |
| height: 300px | |
| taxonomy: [ infotypes ] | |
| recordsperpage: 100 | |
| icon_many: "fa:info" | |
| icon_one: "fa:info" | |
| default_status: publish | |
| sort: title | |
| record_template: informatiepagina.twig | |
| listing_template: pagina_faq.twig |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <h1>{{ page.title|defaul('Alle informatie') }}</h1> | |
| {% if page is defined %} | |
| <!-- there's a page --> | |
| <div>{{ page.body }}</div> | |
| {% if page.infotype is not empty %} | |
| <!-- there's a page with an infotype --> | |
| {% setcontent items = 'informatie' where { infotype: page.infotype } allowpaging %} | |
| {% endif %} | |
| {% endif %} | |
| {% if items is not defined %} | |
| <!-- there was no infotype or not even a page, lets get them all --> | |
| {% setcontent items = 'informatie' allowpaging %} | |
| {% endif %} | |
| {% for item in items %} | |
| <div> | |
| <h2>{{ item.title }}</h2> | |
| {{ item.teaser }} | |
| <a href="{{ item.link }}">lees meer</a> | |
| </div> | |
| {% endfor %} | |
| {{ pager() }} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| infotypes: | |
| name: Informatie types | |
| slug: infotypes | |
| singular_name: Informatie | |
| singular_slug: infotype | |
| behaves_like: categories | |
| multiple: false | |
| # default: nieuws | |
| options: | |
| bagage-en-vervoer: "Bagage en Vervoer" | |
| trouwen: "Trouwen" | |
| bier: "Bier" | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment