Skip to content

Commit c1e060c

Browse files
authored
Merge pull request #751 from ExpressionEngine/feature/7.x/file-entries-folder-param
Added `{folder_id}` variable and parameter for subfolder support in `exp:file:entries` tag
2 parents 591cf72 + 1ef1b7b commit c1e060c

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed

docs/add-ons/file.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,12 @@ The file display engine sets some parameters dynamically, based on what is in th
122122

123123
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.
124124

125+
### `folder_id=`
126+
127+
folder_id="34"
128+
129+
If you want to display only the files that are in certain folder within Upload Directory, specify folder ID using this parameter.
130+
125131
### `limit=`
126132

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

220226
The URL to the file.
221227

228+
### `{folder_id}`
229+
230+
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.
231+
222232
### `{height}`
223233

224234
The height (in pixels) of the full-size image. (Empty for non-image files.)

docs/fieldtypes/file.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,10 @@ If you have defined any [image manipulations](control-panel/file-manager/upload-
132132
{file_size:small:human}
133133
{file_size:small:human_long}
134134

135+
### `{folder_id}`
136+
137+
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.
138+
135139
### `{height}`
136140

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

0 commit comments

Comments
 (0)