- 🇫🇷France flocondetoile Lyon
You can add your own variable with a hook_preprocess_protected_file_link() implementation. Look at template_preprocess_protected_file_link(&$variables).
Automatically closed - issue fixed for 2 weeks with no activity.
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.
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>
No
Fixed
1.3
Code
Not all content is available!
It's likely this issue predates Contrib.social: some issue and comment data are missing.
You can add your own variable with a hook_preprocess_protected_file_link() implementation. Look at template_preprocess_protected_file_link(&$variables).
Automatically closed - issue fixed for 2 weeks with no activity.