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
2dcdf14b
Commit
2dcdf14b
authored
Mar 01, 2017
by
Carsten Rose
Browse files
CODING.md, Index.rst: cosmetic.
parent
35da2fdf
Changes
4
Show whitespace changes
Inline
Side-by-side
doc/CODING.md
View file @
2dcdf14b
...
...
@@ -52,7 +52,7 @@ LOAD
is creatd during form load - individually per browser tab.
*
Faking the STORE_TYPO3 for API calls:
*
The PHP code api/save.php, api/load.php is called directly, without any TYPO3 Framework. Therefore the Typo3 information
'pageId', 'feUser
*', 'beUser*
', 'ttContentUid', ... is not
directly
available.
'pageId', 'feUser
*', 'beUser*
', 'ttContentUid', ... is not available.
*
*Form load*
: an additional hidden Formelement '_sipForTypo3Vars' will be created with a subset of the current
STORE_TYPO3 values. The workaround with the SIP is usefull, cause the same form can be shown on different places (QFQ records) -
this is not very likely, but might happen. The 'on the fly rendered' SIP helps to deliver the status.
...
...
extension/Documentation/AdministratorManual/Index.rst
View file @
2dcdf14b
...
...
@@ -111,6 +111,7 @@ Setup a *report* to manage all *forms*: Create a Typo3 page and insert a content
}
}
.. _config-qfq-ini:
config.qfq.ini
--------------
...
...
extension/Documentation/UsersManual/Index.rst
View file @
2dcdf14b
...
...
@@ -9,6 +9,7 @@
..
.. --------------------------------------------------
.. External Links: `Bootstrap <http://getbootstrap.com/>`_:
.. Add Images: https://wiki.typo3.org/ReST_Syntax#Images
..
.. -*- coding: utf-8 -*- with BOM.
...
...
@@ -79,7 +80,7 @@ QFQ Keywords (Bodytext)
+-------------------+---------------------------------------------------------------------------------+
| <level>.althead | If <level>.sql is empty, these token will be rendered |
+-------------------+---------------------------------------------------------------------------------+
| debugShowBodyText | If ='1' and config.ini:*showDebugInfo=yes*
:
shows a tooltip with bodytext
|
| debugShowBodyText | If ='1' and config.
qfq.
ini:*showDebugInfo=yes*
-
shows a tooltip with bodytext |
+-------------------+---------------------------------------------------------------------------------+
.. _debug:
...
...
@@ -1075,8 +1076,9 @@ Checkboxes can be rendered in mode:
* *No preselection*:
* If there is a default configured on a table column, such a value is selected by default. If the user should actively
choose an option, the 'preselection' can be omitted by specifying an explicit definition on the FormElement field `value`::
* If a form is in 'new' mode and if there is a default value configured on a table column, such a value is shown by default.
There might be situations, where the user should be forced to select a value (e.g. specifying the gender). An unwanted
default value can be suppressed by specifying an explicit definition on the FormElement field `value`::
{{<columnname>:RZ}}
...
...
@@ -1641,7 +1643,7 @@ column on the right side will be rendered.
The used default column (=bootstrap grid) width is *3,6,3* for *label, input, note*.
* The system wide default can be changed via config.qfq.ini :ref:`config
.
qfq
.
ini` - the new settings are the default
* The system wide default can be changed via config.qfq.ini :ref:`config
-
qfq
-
ini` - the new settings are the default
settings for all forms.
* Per *Form* settings can be done in the *Form* parameter field. They overwrite the system wide default.
* Per *FormElement* settings can be done in the *FormElement* parameter field. They overwrite the *Form* setting.
...
...
extension/qfq/sql/formEditor.sql
View file @
2dcdf14b
...
...
@@ -9,7 +9,7 @@ CREATE TABLE IF NOT EXISTS `Form` (
`permitNew`
ENUM
(
'sip'
,
'logged_in'
,
'logged_out'
,
'always'
,
'never'
)
NOT
NULL
DEFAULT
'sip'
,
`permitEdit`
ENUM
(
'sip'
,
'logged_in'
,
'logged_out'
,
'always'
,
'never'
)
NOT
NULL
DEFAULT
'sip'
,
`render`
ENUM
(
'
plain
'
,
'table'
,
'
bootstrap
'
)
NOT
NULL
DEFAULT
'bootstrap'
,
`render`
ENUM
(
'
bootstrap
'
,
'table'
,
'
plain
'
)
NOT
NULL
DEFAULT
'bootstrap'
,
`requiredParameter`
VARCHAR
(
255
)
NOT
NULL
DEFAULT
''
,
`showButton`
SET
(
'new'
,
'delete'
,
'close'
,
'save'
)
NOT
NULL
DEFAULT
'new,delete,close,save'
,
`multiMode`
ENUM
(
'none'
,
'horizontal'
,
'vertical'
)
NOT
NULL
DEFAULT
'none'
,
...
...
@@ -132,7 +132,7 @@ WHERE name LIKE 'form' OR name LIKE 'formElement';
#
#
FormEditor
:
Form
INSERT
INTO
Form
(
id
,
name
,
title
,
noteInternal
,
tableName
,
permitNew
,
permitEdit
,
render
,
multiSql
,
parameter
)
VALUES
(
1
,
'form'
,
'Form Editor: {{SELECT id, " / ", name FROM Form WHERE id = {{r:S0}}}}'
,
'
Please secure the f
or
m
'
,
(
1
,
'form'
,
'Form Editor: {{SELECT id, " / ", name FROM Form WHERE id = {{r:S0}}}}'
,
'
FormElement Edit
or'
,
'Form'
,
'sip'
,
'sip'
,
'bootstrap'
,
''
,
'maxVisiblePill=5
\n
class=container-fluid'
);
#
FormEditor
:
FormElements
for
'form'
...
...
@@ -156,8 +156,8 @@ VALUES
(
1
,
'tableName'
,
'Table'
,
'required'
,
'select'
,
'all'
,
'native'
,
150
,
0
,
0
,
''
,
''
,
''
,
'{{!SHOW tables}}'
,
'emptyItemAtStart'
,
1
,
''
,
''
,
''
),
(
1
,
'requiredParameter'
,
'Required Parameter'
,
'show'
,
'text'
,
'all'
,
'native'
,
200
,
0
,
255
,
''
,
''
,
''
,
''
,
''
,
2
,
''
,
''
,
''
),
(
1
,
'permitNew'
,
'Permit New'
,
'show'
,
'radio'
,
'all'
,
'native'
,
210
,
0
,
3
,
''
,
''
,
''
,
''
,
''
,
2
,
''
,
''
,
''
),
(
1
,
'permitEdit'
,
'Permit Edit'
,
'show'
,
'radio'
,
'all'
,
'native'
,
220
,
0
,
3
,
''
,
''
,
''
,
''
,
''
,
2
,
''
,
''
,
''
),
(
1
,
'permitNew'
,
'Permit New'
,
'show'
,
'radio'
,
'all'
,
'native'
,
210
,
0
,
10
,
''
,
''
,
''
,
''
,
''
,
2
,
''
,
''
,
''
),
(
1
,
'permitEdit'
,
'Permit Edit'
,
'show'
,
'radio'
,
'all'
,
'native'
,
220
,
0
,
10
,
''
,
''
,
''
,
''
,
''
,
2
,
''
,
''
,
''
),
(
1
,
'render'
,
'Render'
,
'show'
,
'radio'
,
'all'
,
'native'
,
230
,
0
,
3
,
''
,
''
,
''
,
''
,
''
,
2
,
''
,
''
,
''
),
(
1
,
'showButton'
,
'Show button'
,
'show'
,
'checkbox'
,
'all'
,
'native'
,
240
,
0
,
5
,
''
,
''
,
''
,
''
,
'checkBoxMode = multi
\n
orientation=vertical'
,
2
,
''
,
''
,
''
),
...
...
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