Tags Fieldtype

tags.png Fieldtype UI
Behold! The Tags Fieldtype!

Overview

Press enter, tab, or , to add a tag. Click an × to remove one. That’s all there is to it.

Data Storage

Your tags will get saved as a simple YAML list, like this:

- applesauce
- garbage pants
- socks

Templating

Loop through the array items to display each item’s value.

<h1>I've heard rumors of:</h1>
<ul>
  {{ tags }}
    <li>{{ value }}</li>
  {{ /tags }}
</ul>
<h1>I've heard rumors of:</h1>
<ul>
  <li>applesauce</li>
  <li>garbage pants</li>
  <li>socks</li>
</ul>

This fieldtype uses the word “tags” in general terms. If you’re looking for a way to tag/categorize your content on a schema-level, you should read about taxonomies.

Config Options

None. It just does this one thing.

Betterify this page on Github!