Score:0

What is the token for the file download link of a media entity?

km flag

Using the linked_field module and the [paragraph:field_pbpresentation_file:entity:url] token, I get the edit link for the media entity, not the link to download the file itself.

What token should I use for the download link?

Score:0
cn flag

You probably want the URL of the file entity, not the media entity.

You have to find out the field name of the file field in the media entity. If you are using a core preinstalled media type it could be for example field_media_file. Then you can access the file entity and the URL:

[paragraph:field_pbpresentation_file:entity:field_media_file:entity:url]
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.