i4w_userfiles
Usage
This shortcode will return a table row for each file available in a given user's Keap filebox.
[ELSE_userfiles] conditional branching is NOT supported.
Shortcode nesting is NOT supported.
Parameters
| Parameter | Description | Default | Required |
|---|---|---|---|
| action | The action to perform on the returned data. Options are: "list" and "dl_links". Specifying "dl_links" automatically generates download links through the API. | list | No |
| cid | The contact ID from whose record the files will be fetched. | Current, logged in user | No |
| filtername | Sets a filter on the file names to query and return. Use the standard API/MySQL '%' where needed. | None | No |
| filterext | Sets a filter on the file extension to query and return. Use the standard API/MySQL '%' where needed. | None | No |
| fieldlist | The fields to return. Available fields are: FileName, Extension, FileSize. | FileName | No |
Example
Shortcode
[i4w_userfiles]
Shortcode
[i4w_userfiles filtername='files%']
Shortcode
[i4w_userfiles filterext='pdf']
Shortcode
[i4w_userfiles cid='1234' filtername='files%']
Shortcode
[i4w_userfiles fieldlist='FileName,FileSize']
Shortcode
[i4w_userfiles action='dl_links']
Notes
warning
To function properly, this shortcode must be wrapped inside HTML <table> tags, such as:
<table>[i4w_userfiles]</table>