DEV Community

Cover image for How to customize/add logic in Strapi CMS Relation-Ship
Jackson Kasi
Jackson Kasi Subscriber

Posted on

1

How to customize/add logic in Strapi CMS Relation-Ship

Hello developers.

I need your help in Strapi CMS.
my case is simple.

Image description
Image description

Here i made on collection type. that is called Center and next one is post.

Image description

here Center has many Posts relation.

all centers title

  • ind_chennai
  • ind_goa
  • ksi_mumbai

some post content_title

  • POST 1
  • POST 2

Image description

When I add/edit a post, I want to show only any center title starting with ind_ in the dropdown.

My problem is if I have to write the logic for this, where do I write it? if you know that way please tell me guys.

Details:

  • strapi v4
  • sqlite / psql

Sentry blog image

How to reduce TTFB

In the past few years in the web dev world, we’ve seen a significant push towards rendering our websites on the server. Doing so is better for SEO and performs better on low-powered devices, but one thing we had to sacrifice is TTFB.

In this article, we’ll see how we can identify what makes our TTFB high so we can fix it.

Read more

Top comments (0)

AWS Security LIVE!

Tune in for AWS Security LIVE!

Join AWS Security LIVE! for expert insights and actionable tips to protect your organization and keep security teams prepared.

Learn More

AWS GenAI LIVE!

GenAI LIVE! is a dynamic live-streamed show exploring how AWS and our partners are helping organizations unlock real value with generative AI.

Tune in to the full event

DEV is partnering to bring live events to the community. Join us or dismiss this billboard if you're not interested. ❤️