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

SurveyJS custom survey software

JavaScript UI Libraries for Surveys and Forms

SurveyJS lets you build a JSON-based form management system that integrates with any backend, giving you full control over your data and no user limits. Includes support for custom question types, skip logic, integrated CCS editor, PDF export, real-time analytics & more.

Learn more

Top comments (0)

Billboard image

The Next Generation Developer Platform

Coherence is the first Platform-as-a-Service you can control. Unlike "black-box" platforms that are opinionated about the infra you can deploy, Coherence is powered by CNC, the open-source IaC framework, which offers limitless customization.

Learn more