Score:0

Content type field to include both media entities and links

pl flag

I'm new to Drupal and I'm creating a new content type. I know there's two separate fields for media and links, but is there a field that include both? For example, the field is called "News Releases", a user can upload a document and/or include a link. Or would I need to create two separate fields and have one called "News Releases" and "News Releases 2" for media and links?

Score:0
ph flag

Your best option is probably to use the paragraphs module and create a paragraph type of "News release" that contains the media field and the link field, then create an instance of that paragraph field on your content type.

pl flag
That worked perfectly and learned something new, thanks!!
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.