Archive for the ‘Craft CMS + Twig’ Category
Craft CMS & Twig Snippets
Some samples dumped here Related Entries (aka “entries” type field) {% set authors = craft.entries.section(‘newsAuthors’).relatedTo(entry) %} {% set auth = authors.first() %} Current Page URL {{ url(craft.request.path) }} How to get NEO/ Matrix Field in template {{entry.textWithSubtitle.first().subtitle}} Loop entire section {% for key,job in craft.entries.section(‘jobs’) %} OUT {% endfor %} Neo/Matrix fields with block types […]
Posted on October 18, 2016 at 16:00 by arte · Permalink
· Leave a comment
In: Craft CMS + Twig, English, Fighting the system
In: Craft CMS + Twig, English, Fighting the system