Collections Fieldtype

Learn by watching a brand new screencast! Watch Now
Behold! The Collections Fieldtype!


This fieldtype is used to view and select from a list of Collections.

    type: collections

Data Structure

The Collections fieldtype is a Relate fieldtype, and will save the collections as their handles (the folder name).

  - blog
  - things


You’re more than likely using this field as a way to dynamically display a collection.

Since the collection tag accepts a pipe-delimited list of collection names, you can join them together like this:

  {{ collection from="{listings|piped}" }}
    <li>{{ title }}</li>
  {{ /collection }}
  <li>A blog entry</li>
  <li>A thing entry</li>

collection string/array

You can pass a single collection as a string or multiple collections as an array.

Betterify this page on Github!