zesty.io

Product

Use Cases

Integrations

Learn

How to Create a one_to_many Relationship

Guide in creating a one_to_many relationship field in Zesty.io

Getting Started

#

A good way to explain one-to-many relationships is through tags. In Zesty.io blogs, tags can be used to tie related content together.

To demonstrate how to use tags, lets make a blog content model. Once the blog is created, create a new Article Tag from the content page.

contentTab

Now in the Articles section, you can select a tag from the 'Article Tags' field.

articleTag

The one-to-many relationship here works in that you can have many tags to one article. This is particular useful for organizing your content, or even doing creative things like looping through the tags to create a way to filter through articles by the tags themselves. For a guide to do just that, click here

In Parsley

#

When you create a blog in zesty, the logic behind the tags is already set up. Lets take a look at how tags are connected to articles in Parsley:

The above code creates the listing of tags in the article 'tag' page:

tags

Start Here

We will listen to your needs and walk you through how Zesty can help your team.

Connect with Content Experts

Book a free 15-minute consultation with a content expert. Discuss your application, pain points and requirements. Understand how Zesty's lower total cost of ownership, features, functionality can elevate your business by creating extraordinary digital experiences.

Trusted By

zesty customer logo Sonyzesty customer logo Rocket Leaguezesty customer logo Singlifezesty customer logo Acornszesty customer logo Phoenix Sunszesty customer logo Wattpadzesty customer logo Corner Shopzesty customer logo Bjs

Enter your details to connect with a Content Expert

First Name

Last Name

Email

Phone (optional)

Company

Please tell us about your project (optional)

G2 MOMENTUM LEADER

zesty customer logo zesty customer logo zesty customer logo zesty customer logo