Skip to content

Commit

Permalink
Added {folder_id} variable and parameter for subfolder support in `…
Browse files Browse the repository at this point in the history
…exp:file:entries` tag
  • Loading branch information
intoeetive committed Oct 13, 2023
1 parent cfceafa commit 1ef1b7b
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
10 changes: 10 additions & 0 deletions docs/add-ons/file.md
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,12 @@ The file display engine sets some parameters dynamically, based on what is in th

You can hard code the file entries tag to show specific files. You may also specify multiple files by separating them with the pipe character. This parameter takes precedence over any entry specified in the url.

### `folder_id=`

folder_id="34"

If you want to display only the files that are in certain folder within Upload Directory, specify folder ID using this parameter.

### `limit=`

limit="30"
Expand Down Expand Up @@ -219,6 +225,10 @@ If you have defined any [image manipulations](control-panel/file-manager/upload-

The URL to the file.

### `{folder_id}`

If the file is in a subfolder, will return ID of the folder. If the file is in root or upload directory, will return 0.

### `{height}`

The height (in pixels) of the full-size image. (Empty for non-image files.)
Expand Down
4 changes: 4 additions & 0 deletions docs/fieldtypes/file.md
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,10 @@ If you have defined any [image manipulations](control-panel/file-manager/upload-
{file_size:small:human}
{file_size:small:human_long}

### `{folder_id}`

If the file is in a subfolder, will return ID of the folder. If the file is in root or upload directory, will return 0.

### `{height}`

The height of the image (in pixels) if applicable.
Expand Down

0 comments on commit 1ef1b7b

Please sign in to comment.