# Tagging Content in Agility

> Source: https://agilitycms.com/docs/developers/tagging-content-in-agility

## What is Content Tagging and why is it important?

Content Tagging is extremely useful for creating relationships between content items, or nesting lists within an item. Agility makes this process easy and seamless.  

## Setting Up Content Tagging

Let’s go through the steps of setting up and getting started with content tags. 

## Creating a Tag Model

The first thing we’ll need to do is create a model for Content Tagging. To do this from the **Models Section** in Agility 

1. Click **New Content Model**


2. **Give it a Name**, we'll use Tags


![](https://cdn.aglty.io/agility-cms-docs/images/block-editor/Refresh%20-%20Tag%20Model%20New-03012024161627.png)

3. Add a simple **Text Field** and give it a name, we’ll use Title 

![](https://cdn.aglty.io/agility-cms-docs/images/block-editor/Refresh%20-%20Tag%20Model%20Text%20Field-03012024161726.png)

4. Click **Update Field **

5. Click** Usage** on the right-hand side and then **+ Add** 

![](https://cdn.aglty.io/agility-cms-docs/images/block-editor/Refresh%20-%20Tag%20Model%20Add%20Container-03012024161819.png)

6. Give it a name, we used Tags again and then click** Create List**

![](https://cdn.aglty.io/agility-cms-docs/images/block-editor/Refresh%20-%20Tag%20Model%20Container%20Name-03012024161909.png)

You can now Navigate to the **Content Dashboard**, click your **Tags List** and then click **New** to start adding Tag options. 

## Using your Tags Model

Your newly created Tags Model can now be added to another Content Model as a Linked List. To do this 

1. From the Content Model Dashboard, select the Content Model you’d like to add Tags to 

2. From the Add Fields menu on the right-hand side, drag and drop Linked Content and add it to the Model 

![](https://cdn.aglty.io/agility-cms-docs/images/block-editor/Refresh%20-%20Tag%20Model%20Linked%20Content-03012024162105.png)

3. To keep it simple, we’ll name it Tags again 

4. Under the Field Properties tab select the below options


![](https://cdn.aglty.io/agility-cms-docs/images/block-editor/Refresh%20-%20Tag%20Model%20Linked%20Content%20Prop-03012024162207.png)

- **Link to: **Content 

- **Link Type:** Specific Item(s) from a List 

- **Render UI: **Search List Box 

- **Content Selection: **Specific Content List 

- **Content Reference:** Your Tags List 

- **Save Value to Field: **Create a New Field 

- **Visible Fields: **Leave Blank 

You’ll now be able to go into the content you added the Tags field to and add Content Tags from the list you created earlier. 

## Sample Content Tags API Response

Here’s how tags might look in an API response for a Blog Post 

```
{
  "contentID": 16,
  "properties": {
    "state": 1,
    "modified": "2022-07-08T14:18:06.507",
    "versionID": 31,
    "referenceName": "blogposts",
    "definitionName": "BlogPost",
    "itemOrder": 1
  },
  "fields": {
    "title": "My First Post",
    "date": "2022-07-08T00:00:00-04:00",
    "tags": [
      {
        "contentID": 11,
        "properties": {
          "state": 1,
          "modified": "2022-07-08T14:01:19.15",
          "versionID": 26,
          "referenceName": "tags",
          "definitionName": "Tags",
          "itemOrder": 2
        },
        "fields": {
          "title": "Sports"
        },
        "seo": null
      },
      {
        "contentID": 13,
        "properties": {
          "state": 1,
          "modified": "2022-07-08T14:01:28.367",
          "versionID": 28,
          "referenceName": "tags",
          "definitionName": "Tags",
          "itemOrder": 4
        },
        "fields": {
          "title": "Lifestyle"
        },
        "seo": null
      }
    ],
    "content": "<p>This is my first blog post!</p>",
    "tags_TextField": "Sports,Lifestyle",
    "tags_ValueField": "11,13"
  }
}
```

**Further Reading**


- [Content- First Approach](https://agilitycms.com/docs/developers/content-first)
- [Content Models](https://agilitycms.com/docs/developers/content-models)
- [Fields](https://agilitycms.com/docs/developers/fields)

---

## Related pages

- [Content-first Approach](https://agilitycms.com/docs/developers/content-first.md)
- [Content Models](https://agilitycms.com/docs/developers/content-models.md)
- [Component Models ](https://agilitycms.com/docs/developers/component-models.md)
- [Fields](https://agilitycms.com/docs/developers/fields.md)
- [Nest, Link or Share? Choosing Linked Content Field Types](https://agilitycms.com/docs/developers/linked-content-field-types.md)
- [Getting Started with Linked Content](https://agilitycms.com/docs/developers/getting-started-with-linked-content.md)
- [Sitemaps](https://agilitycms.com/docs/developers/sitemaps.md)
- [Page Models](https://agilitycms.com/docs/developers/page-models.md)
- [Setting Up Preview](https://agilitycms.com/docs/developers/setting-up-preview.md)
- [Handling Agility URLs](https://agilitycms.com/docs/developers/handling-agility-urls.md)
- [Deployment & Code Repositories](https://agilitycms.com/docs/developers/deployment-code-repositories.md)
- [Managing SEO for Developers](https://agilitycms.com/docs/developers/manging-seo-for-developers.md)
- [Mastering Nested Linked Content in Agility CMS: Enhance Hierarchical Data Management](https://agilitycms.com/docs/developers/nested-linked-content.md)
- [Advanced Field Validation with Regular Expressions](https://agilitycms.com/docs/developers/advanced-field-validation-with-regular-expressions.md)
- [Dynamic Content Control: Implementing Hide/When Formulas in Your Headless CMS Content Model](https://agilitycms.com/docs/developers/dynamic-content-control-implementing-hide-when-formulas-in-your-headless-cms-content-model.md)
- [Grouping Components into Tabs, Accordions, and Sections](https://agilitycms.com/docs/developers/grouping-components-into-tabs.md)
- [Conditional & Cross-Field Validation](https://agilitycms.com/docs/developers/conditional-and-cross-field-validation.md)
- [Set Up Web Studio with Any Framework](https://agilitycms.com/docs/developers/web-studio-setup-any-framework.md)
- [Troubleshooting Web Studio](https://agilitycms.com/docs/developers/troubleshooting-web-studio.md)
- [Content Modeling Anti-Patterns](https://agilitycms.com/docs/developers/content-modeling-anti-patterns.md)
- [Designing a Taxonomy That Scales](https://agilitycms.com/docs/developers/designing-a-taxonomy.md)
- [Map Your Design System to Component Models](https://agilitycms.com/docs/developers/design-system-to-component-models.md)
- [Structured Content Explained](https://agilitycms.com/docs/developers/structured-content-explained.md)
- [Beyond the Website: Apps, Kiosks, Email and In-App](https://agilitycms.com/docs/developers/beyond-the-website.md)
- [Make Your Content Model Agent-Friendly](https://agilitycms.com/docs/developers/agent-friendly-content-models.md)
- [Component Visibility](https://agilitycms.com/docs/developers/component-visibility.md)

Index of every docs page: https://agilitycms.com/docs/llms.txt
