Help needed in setting up a custom use case

Created on 13 November 2020, over 3 years ago
Updated 31 January 2023, over 1 year ago

Hello

Sorry if this is a dumb question, but the documentation didnt help and i tested multiple times.

So i have the following use case.

I have one taxonomy called COUNTRIES.
The country taxonomy, has another field called REGION (term reference as well).

So:
-Florida is tagged with USA
-Spain is tagged with EUROPE
-Janap is tagged with ASIA
etc

Now i have different content types: project, news, team-member etc.

Whenever i create a new project/news etc, i set only the country.
I want all of those content types to inherit the REGION taxonomy automatically.

When i create a project with the term FLORIDA country, i need this project to inherit the REGION which is USA.

I set it up but for some reason its not working correctly.

can you please give any guidance?

πŸ’¬ Support request
Status

Active

Version

2.0

Component

Miscellaneous

Created by

πŸ‡¦πŸ‡±Albania Elvin - Albania Drupal Developer

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • Owenbush:

    You have stated in previous post:
    1. On the Country terms, enable inheritance in the edit/add form, and set which Region term that Country term maps to.
    2. On the nodes, enable inheritance in the edit/add form, and set which Country term that node maps to.

    However how to enable it in edit/add form ? I don't see any option anywhere. What I am missing.

    In my case I do have project with field called "Resource" referenced to user.
    And I would like to display /inherit that resource to another content type called "Activity" where I need to see resources added to project.

    So i went to :/admin/structure/field_inheritance

    and added field inheritance ass follow:

    Inheritance Strategy: Inherit
    Source Entity Type: node
    Source Entity Bundle: projects
    Source Field: field_resource
    Destination Entity Type: Node
    Destination Entity Bundle: activities

    Now when I go to structure> activities > manage display I can see my inherited field there.

    However when I create new project with resources - i cannot see them in my activity page even I have reference field called project in my activity with autocomplete. So basicly with that reference I know that this activity belongs to project 1....So I need to see on that activity 1 also resources from the project 1...

    I am missing anything and don't know what.

    I

Production build 0.69.0 2024