Skip to main content

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

ParameterDescriptionDefaultRequired
actionThe action to perform on the returned data. Options are: "list" and "dl_links". Specifying "dl_links" automatically generates download links through the API.listNo
cidThe contact ID from whose record the files will be fetched.Current, logged in userNo
filternameSets a filter on the file names to query and return. Use the standard API/MySQL '%' where needed.NoneNo
filterextSets a filter on the file extension to query and return. Use the standard API/MySQL '%' where needed.NoneNo
fieldlistThe fields to return. Available fields are: FileName, Extension, FileSize.FileNameNo

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>