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
a8d1ab18
Commit
a8d1ab18
authored
Jan 14, 2019
by
Carsten Rose
Browse files
Manual.rst: add some tips.
parent
bee3ac4b
Pipeline
#1328
passed with stage
in 2 minutes and 9 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
extension/Documentation/Manual.rst
View file @
a8d1ab18
...
...
@@ -3106,7 +3106,7 @@ the server, the lookup will be performed and the result, upto *typeAheadLimit* e
* *FormElement.parameter*:
* *typeAheadLimit* = <number>. Max numbers of result records to be shown. Default is 20.
* *typeAheadMinLength* = <number>. Minimum length to type before the first lookup starts.
* *typeAheadMinLength* = <number>. Minimum length to type before the first lookup starts.
Default is 2.
Depending of the `typeahead` setup, the given FormElement will contain the displayed `value` or `id` (if an id/value dict is
configured).
...
...
@@ -3169,10 +3169,18 @@ Type: editor
* To deactivate the surrouding `
<p>
` tag, configure in *FormElement.parameter*::
editor-forced_root_block
=
false
editor-forced_root_block
=
false
This might have impacts on the editor. See https://www.tinymce.com/docs/configure/content-filtering/#forced_root_block
* Set 'extended_valid_elements' to enable HTML tags and their attributes. Example: ::
editor-extended_valid_elements = span[class|style]
* Set 'editor-content_css' to use a custom CSS to style elements inside the editor. Example: ::
editor-content_css = fileadmin/custom.css
* *FormElement.size* =
<min_height>
,
<max_height>
: in pixels, including top and bottom bars. E.g.: 300,600
...
...
@@ -3410,10 +3418,14 @@ will be rendered inside the form as a HTML table.
* *Constant '
&
'*: Indicate a 'constant' value. E.g. `
&
12:xId` or `{{...}}` (all possibilities, incl. further SELECT
statements) might be used.
* *subrecordTableClass*: Optional. Default: 'table table-hover qfq-subrecord-table'. If given, the default will be
overwritten.
This parameter is helpful if you want to add tablesorting to your subrecord - e
xample: ::
* *subrecordTableClass*: Optional. Default: 'table table-hover qfq-subrecord-table'. If given, the default will be
overwritten. E
xample: ::
subrecordTableClass = table table-hover qfq-subrecord-table tablesorter tablesorter-pager
subrecordTableClass = table table-hover qfq-subrecord-table qfq-table-50
* Tablesorter in Subrecord:
subrecordTableClass = table table-hover qfq-subrecord-table tablesorter tablesorter-pager tablesorter-filter
* *subrecordColumnTitleEdit*: Optional. Will be rendered as the column title for the new/edit column.
* *subrecordColumnTitleDelete*: Optional. Will be rendered as the column title for the delete column.
...
...
@@ -7557,13 +7569,35 @@ Tip on Report: In case the query did not contain any double ticks, just wrap all
Buggy
query
:
10
.sql
=
SELECT
id
,
...
FROM
myTable
WHERE
status
=
{
{myVar
}
}
ORDER
BY
status
Debug
query
:
10
.sql
=
SELECT
"id, ... FROM myTable WHERE status={{myVar}} ORDER BY status"
Error
read
file
config
.qfq.php
:
syntax
error
on
line
xx
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Check
the
given
line
number
.
If
it
's a SQL statement, enclose it in single or double ticks.
Output a text, substitute embedded QFQ variables
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
The content will be copied to '
_text
'. In `10.tail` than the '
{
{
text
:
R
}
}
' will be substituted with all known variables.
Note the '
-
' in '
{
{
text
:
RE
::
-
}
}
', this will prevent that QFQ escapes any character from the content. ::
10 {
sql = SELECT no.text AS _text
FROM Note AS no
WHERE id=...
tail = {{text:RE::-}}
}
TypeAhead list with T3 page alias names - use of the T3 DB
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
To define a typeahead list of T3 page alias names: ::
FE.type = text
FE.parameter.typeAheadSql = SELECT p.alias FROM {{dbNameT3:Y}}.pages AS p WHERE p.deleted=0 AND p.alias!='' AND p.alias LIKE ? ORDER BY p.alias LIMIT 20
FE.parameter.typeAheadMinLength = 1
Logging
-------
...
...
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