Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
typo3
qfq
Commits
2332294e
Commit
2332294e
authored
Nov 05, 2017
by
Carsten Rose
Browse files
Bug: fix example SQL for periodId in config.qfq.ini
parent
103a3d8f
Changes
1
Hide whitespace changes
Inline
Side-by-side
extension/Documentation/Manual.rst
View file @
2332294e
...
...
@@ -444,7 +444,7 @@ Example: *typo3conf/config.qfq.ini*
; Local Documentation (doc fits to installed version): typo3conf/ext/qfq/Documentation/html/Manual.html
;DOCUMENTATION_QFQ = https://docs.typo3.org/typo3cms/drafts/github/T3DocumentationStarter/Public-Info-053/Manual.html
;VAR_ADD_BY_SQL =
{{!
SELECT s.id AS _periodId FROM Period AS s WHERE s.start<=NOW() ORDER BY s.start DESC LIMIT 1
}}
;VAR_ADD_BY_SQL =
'
SELECT s.id AS _periodId FROM Period AS s WHERE s.start<=NOW() ORDER BY s.start DESC LIMIT 1
'
;FORM_LANGUAGE_A_ID = 1
;FORM_LANGUAGE_A_LABEL = english
...
...
@@ -508,7 +508,7 @@ The QFQ approach works without a marker and without manual intervention: the whi
In `config.qfq.ini`: ::
VAR_ADD_BY_SQL = SELECT id AS periodId FROM Period WHERE start<=NOW() ORDER BY start DESC LIMIT 1
VAR_ADD_BY_SQL =
'
SELECT id AS periodId FROM Period WHERE start<=NOW() ORDER BY start DESC LIMIT 1
'
a variable 'periodId' will automatically computed and filled in STORE SYSTEM. Access it via `{{periodId:Y0}}`.
To get the name and current period: ::
...
...
Write
Preview
Supports
Markdown
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