Rendering protected file url in view

Created on 10 May 2021, about 3 years ago
Updated 18 March 2023, over 1 year ago

Problem/Motivation

I would like to use the protected file url option in view because the Protected File default formatter is the only option now to render the file.

Steps to reproduce

I found in the protected-file-link.html.twig file a simple line witch rendering the protected file <span{{ attributes }}>{{ link }} {{ icon }}</span>. But I'm not sure how can change it to render the redirect_uri here.
Or maybe my ide is totally wrong.

I want to use a simple styles in my view to show a clickable file. For example: <a href="{{ my_protected_file_url }}"><img src="/icon.png" alt="file" title="Download"></a>

User interface changes

No

πŸ’¬ Support request
Status

Fixed

Version

1.3

Component

Code

Created by

πŸ‡ͺπŸ‡ΈSpain tiburi

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.69.0 2024