[memb_file_link]
Description
Renders an anchor tag pointing at a file inside a configured Secure Files profile. Two linking modes:
- Indirect (default): links to a Torii-proxied URL. The provider URL is signed at access time, so signatures stay short-lived and the link keeps working from cached pages.
- Direct (
direct_link="yes"): embeds a provider-signed URL generated at render time, valid for theexpirationwindow.
Link text resolution order: enclosed shortcode content, then the
text attribute, then the file's basename.
Shortcode Examples
[memb_file_link profile="s3-videos" path="courses/lesson-1.mp4"]Watch Lesson 1[/memb_file_link]
Direct link with a download attribute:
[memb_file_link profile="s3-videos" path="reports/2026.pdf" text="Download Report" direct_link="yes" download="report-2026.pdf"]
Shortcode Parameters
profile
Secure Files profile slug. Required, renders nothing when empty.
path
File path within the profile's bucket/zone. Required, renders nothing when empty.
direct_link
'yes' to embed a directly signed provider URL instead of the
indirect proxied link. Default: 'no'.
expiration
URL lifetime in seconds for direct links. Falls back to the profile's
configured expiration. Default: ''.
require_login
Whether the indirect link requires login at access time.
Default: 'no'.
text
Link text when no enclosed content is provided. Default: ''.
target
Anchor target attribute. Default: '_blank'.
download
Value for the anchor's download attribute (prompts a file download
with this filename). Default: '' (no attribute).
class
CSS class for the anchor. Default: ''.
id
HTML ID for the anchor. Default: ''.
before
Content prepended to the output. Default: ''.
after
Content appended to the output. Default: ''.
Shortcode Attributes
| Attribute | Value |
|---|---|
| Conditional | No |
| Nestable | No |
| Accepts formatting | No |