Last active
November 18, 2016 13:44
-
-
Save jadwigo/4c8a55b19f41e9248778bdcf66a6dc32 to your computer and use it in GitHub Desktop.
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 | |
| 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 pagina's" | |
| singular_name: "Informatie pagina" | |
| slug: informatieovericht | |
| singular_slug: informatie | |
| 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: [ infotypen ] | |
| recordsperpage: 100 | |
| icon_many: "fa:info" | |
| icon_one: "fa:info" | |
| default_status: publish | |
| sort: title | |
| record_template: informatiepagina.twig # dit is een listing pagina van subs | |
| listing_template: informatie.twig # deze wordt nooit gebruikt | |
| informatieitems: | |
| name: "Informatie item's" | |
| singular_name: "Informatie item" | |
| slug: informatieitems | |
| singular_slug: 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: [ infotypen ] | |
| recordsperpage: 100 | |
| icon_many: "fa:info" | |
| icon_one: "fa:info" | |
| default_status: publish | |
| sort: title | |
| record_template: informatieitem.twig # dit is een listing pagina van subs | |
| listing_template: informatiepagina.twig # dezelfde als de informatielisting |
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
| {% if informatie is defined %} | |
| <h1>{{ informatie.title }}</h1> | |
| {% setcontent items = 'informatieitems' where { 'infotypen': informatie.title } allowpaging %} | |
| {% else %} | |
| <h1>Alle subs</h1> | |
| {% setcontent items = 'informatieitems' allowpaging %} | |
| {% endif %} | |
| {% for item in items %} | |
| <div> | |
| <h2>{{ item.title }}</h2> | |
| {{ item.teaser }} | |
| < a href="info/{{ item.slug }}">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
| {% set list = taxonomylist('categories') %} | |
| <ul> | |
| {% for item in list %} | |
| <li> | |
| <a class="taxonomy-{{ item.slug }}" href="informatie/{{ item.slug }}" title="{{ item.name }}"> | |
| {{ item.name }} | |
| </a> | |
| </li> | |
| {% endfor %} | |
| </ul> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment