Skip to content

Commit e005458

Browse files
authored
Update enhanced.md
Few updates to the file picker content.
1 parent 901eafe commit e005458

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/development/fieldtypes/enhanced.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -241,9 +241,9 @@ Possible return values are:
241241

242242
## File Manager support
243243

244-
References to files (as placed by Filepicker) can be in different forms - contaning file ID (e.g. `{file:123:url}`), or contaning directory ID and file name (e.g. `{filedir_2}filename.jpg`) when in [Compatibility Mode](control-panel/file-manager/file-manager.md#compatibility-mode).
244+
References to files in content (ex. when a file is selected by the Filepicker) can be in two different forms, depending on if the file manager is running in Compatibility Mode or not. If it's not running in compatibility mode, the file references in content will contain a file ID (e.g. `{file:123:url}` where 123 is the file id). The file can also be referenced in content with a directory ID and file name (e.g. `{filedir_2}filename.jpg`) when in [Compatibility Mode](control-panel/file-manager/file-manager.md#compatibility-mode).
245245

246-
To get both cases parsed correctly, please use `ee()->file_field->parse_string` function.
246+
To parse both cases correctly, please use `ee()->file_field->parse_string` function.
247247

248248
ee()->load->library('file_field');
249249
$data = ee()->file_field->parse_string($data);

0 commit comments

Comments
 (0)