Answer the question
In order to leave comments, you need to log in
Communication between entities in Drupal 8?
Hello. I have the following question.
There is Drupal 8.
What is there:
On a manually created page, available for display only to the admin, a table of enterprises is displayed (with the fields "Name of the enterprise", "URl-address"). Businesses are listed in the taxonomy dictionary (with an additional URl-address field). Adding an enterprise occurs through a form created through its module. The table is displayed by standard means.
On the manually created page, available for display to the logged-in user, a table of personal accounts is displayed (with the fields "Company", "Personal account"). Here he can add a new personal account by selecting the company to which he belongs. The add form was created programmatically, through its module. To store this data, a separate table was created in the database.
What needs to be done:
The admin wants to add news (one or more) for each enterprise. Then the user should somehow see these news, moreover, the news of the company that he has a personal account (for example, in the form of a link in his table in the name of the company). That is, in the table, he clicks on the name of the enterprise, and all news is displayed to him. Clicks on another enterprise, other news is displayed.
If there is no ready-made solution, I will be glad for a hint in which direction to dig. Thanks in advance.
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question