Creation of a Content Type to Meet Required Use Case
-
11-12-2020 - |
문제
How do I achieve the following Use Case?
Use Case Example
Widgets, Inc. offers franchising opportunities. They have 3 different franchising levels (bronze, silver and gold).
Widgets, Inc. needs to create a Incident Report(Add New Content) any time an associated franchise has a problem.
They need 3 different types of Incident Reports(Content Types).
- Bronze Incident Report
- Silver Incident Report
- Gold Incident Report
Each Incident Report contains two elements:
- Text field for entering report
- A static, uneditable list of Franchises within the same tier(Bronze, Silver and Gold)
The problem is in adding the second element. I am not sure how to do this. The second element represents a secondary data source, created from an HTML or PHP page.
해결책
The answer is: https://www.drupal.org/project/iframe
"A custom field, which lets you add a complete iframe to your content types; including Src-URL, setting width and height, optionally a title above, and optionally a target attribute."
This gives a user the ability to import data from a secondary source.