Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
typo3
qfq
Commits
43ae6a14
Commit
43ae6a14
authored
Feb 07, 2021
by
Carsten Rose
Browse files
Set internal refs to STORE_VARS
parent
93bb1fb9
Pipeline
#4964
passed with stages
in 4 minutes and 12 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
.editorconfig
View file @
43ae6a14
...
...
@@ -5,13 +5,14 @@
# top-most EditorConfig file
root = false
[{*.rst,
*.rst.txt}]
[{*.rst,*.rst.txt}]
charset = utf-8
end_of_line = lf
insert_final_newline = true
trim_trailing_whitespace = true
indent_style = space
indent_size = 3
max_line_length = 80
# MD-Files
[*.md]
...
...
Documentation/Form.rst
View file @
43ae6a14
...
...
@@ -1924,10 +1924,10 @@ During saving the current record, it behaves like an action FormElement
and will be processed after saving the primary record and before any action FormElements are processed.
* *FormElement.value* = `<string>` - By default, the full path of any already uploaded file is shown. To show something
different, e.g. only the filename, define:
::
different, e.g. only the filename, define:
a)
{{filenameBase:V}}
b)
{{SELECT SUBSTRING_INDEX( '{{pathFileName:R}}', '/', -1) }}
* ``
{{filenameBase:V}}
`` (see :ref:` STORE_VARS <store_vars_form_element_upload>`)
* ``
{{SELECT SUBSTRING_INDEX( '{{pathFileName:R}}', '/', -1) }}
``
See also :ref:`download Button<downloadButton>` to offer a download of an uploaded file.
...
...
@@ -1964,7 +1964,8 @@ FormElement.parameter
* *fileDestination* = `<pathFileName>` - Destination where to copy the file. A good practice is to specify a relative `fileDestination` -
such an installation (filesystem and database) are moveable.
* If the original filename should be part of `fileDestination`, the variable *{{filename}}* (STORE_VARS) can be used. Example ::
* If the original filename should be part of `fileDestination`, the variable *{{filename}}*
(see :ref:` STORE_VARS <store_vars_form_element_upload>`) can be used. Example ::
fileDestination={{SELECT 'fileadmin/user/pictures/', p.name, '-{{filename}}' FROM Person AS p WHERE p.id={{id:R0}} }}
...
...
@@ -2026,7 +2027,7 @@ FormElement.parameter
`fe.value`. The button is only shown if `fe.value` points to a readable file on the server.
* If `downloadButton` is empty, just shows the regular download glyph.
* To just show the filename: `downloadButton = t:{{filenameOnly:V}}`
* To just show the filename: `downloadButton = t:{{filenameOnly:V}}`
(see :ref:` STORE_VARS <store_vars_form_element_upload>`)
* Additional attributes might be given like `downloadButton = t:Download|o:check file|G:0`. Please check :ref:`download`.
* *fileUnzip* - If the file is a ZIP file (only then) it will be unzipped. If no directory is given via ``fileUnzip``, the
...
...
@@ -2129,7 +2130,8 @@ with 'my', e.g. 'myUpload1'.
* *FormElement.parameter*:
* *fileDestination* = `<pathFileName>` - determine the path/filename. E.g.::
* *fileDestination* = `<pathFileName>` - define the path/filename
(see also :ref:` STORE_VARS <store_vars_form_element_upload>`). E.g.::
fileDestination=fileadmin/person/{{name:R0}}_{{id:R}}/uploads/picture_{{filename}}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment