Score:-3

How to get url path of media file (pdf) in node twig file?

cn flag

I Uploaded a pdf file using media library. Now i want to render file link in twig file. please help in this

cn flag
How is the node configured? What is the relationship of the PDF file to the node?
No Sssweat avatar
ua flag
Install [twig weak 3.1.3](https://www.drupal.org/project/twig_tweak) and use the [cheat sheet](https://git.drupalcode.org/project/twig_tweak/-/blob/3.x/docs/cheat-sheet.md), `{{ node.field_media|file_url }}`
cn flag
tq so much its working but in views block to twig how we can render media fields
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.