Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
qfq
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
typo3
qfq
Commits
1c8c7c34
Commit
1c8c7c34
authored
8 years ago
by
Carsten Rose
Browse files
Options
Downloads
Patches
Plain Diff
UsersManual/index.rst: adjusted recordId, recordid & fe_user
testtables.sql: added 'picture', 'modified' and 'created'
parent
ed000e49
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
extension/Documentation/UsersManual/Index.rst
+6
-6
6 additions, 6 deletions
extension/Documentation/UsersManual/Index.rst
extension/qfq/sql/testtables.sql
+21
-13
21 additions, 13 deletions
extension/qfq/sql/testtables.sql
with
27 additions
and
19 deletions
extension/Documentation/UsersManual/Index.rst
+
6
−
6
View file @
1c8c7c34
...
...
@@ -140,11 +140,11 @@ Most fields of a form specification might contain:
* Example:
*{{r
ecordid
}}*
*{{r}}*
*{{SELECT name FROM person WHERE id=1234}}*
*{{SELECT name FROM person WHERE id={{r
ecordid
}} }}*
*{{SELECT name FROM person WHERE id={{r}} }}*
*{{SELECT name FROM person WHERE id={{key1:C:alnumx}} }}*
...
...
@@ -208,7 +208,7 @@ Only variables that are known in a specified store can be substituted.
+-----+----------------------------------------------------------------------------------------+----------------------------------------------------------------------------+
| C | Client: POST variable, if not found: GET variable | Parameter sent from the Client (=Browser). |
+-----+----------------------------------------------------------------------------------------+----------------------------------------------------------------------------+
| T | Typo3: a) Bodytext (ttcontent record), b) Typo3 internal varibles like fe
_u
ser
_uid
, ...| See Typo3 tt_content record configuration |
| T | Typo3: a) Bodytext (ttcontent record), b) Typo3 internal varibles like fe
U
ser, ...
| See Typo3 tt_content record configuration |
+-----+----------------------------------------------------------------------------------------+----------------------------------------------------------------------------+
| V | Vars - Generic variables | |
+-----+----------------------------------------------------------------------------------------+----------------------------------------------------------------------------+
...
...
@@ -342,8 +342,8 @@ SQL
* Example::
{{SELECT id, name FROM Person}}
{{SELECT id, name, IF({{fe
_u
ser}}=0,'Yes','No') FROM Vorlesung WHERE sem_id={{keySemId:Y}} }}
{{SELECT id, city FROM Address AS adr WHERE adr.p_id={{SELECT id FROM Account AS acc WHERE acc.name={{fe
_u
ser}} }} }}
{{SELECT id, name, IF({{fe
U
ser}}=0,'Yes','No') FROM Vorlesung WHERE sem_id={{keySemId:Y}} }}
{{SELECT id, city FROM Address AS adr WHERE adr.p_id={{SELECT id FROM Account AS acc WHERE acc.name={{fe
U
ser}} }} }}
* Special case for SELECT input fields. To deliver a result array specify an '!' before the SELECT:
...
...
@@ -1453,7 +1453,7 @@ below.
+-------------+-------------------------------------------------------------------------------------------------+----------------------------------------------------------+---------------------------------------------------------------+
|<page> |TYPO3 page id or page alias. |The current page: *{{pageId}}* |45 application application&N_param1=1045 |
+-------------+-------------------------------------------------------------------------------------------------+----------------------------------------------------------+---------------------------------------------------------------+
|<r
ecordid>
|Effective Record ID stored in hash array. |<empty> |7011 |
|<r
>
|Effective Record ID stored in hash array. |<empty> |7011 |
+-------------+-------------------------------------------------------------------------------------------------+----------------------------------------------------------+---------------------------------------------------------------+
|<text> |Text, wrapped by the link. If there is an icon, text will be displayed to the right of it. |empty string | |
+-------------+-------------------------------------------------------------------------------------------------+----------------------------------------------------------+---------------------------------------------------------------+
...
...
This diff is collapsed.
Click to expand it.
extension/qfq/sql/testtables.sql
+
21
−
13
View file @
1c8c7c34
DROP
TABLE
IF
EXISTS
Person
;
CREATE
TABLE
Person
(
id
BIGINT
AUTO_INCREMENT
PRIMARY
KEY
,
name
VARCHAR
(
128
),
firstname
VARCHAR
(
128
),
gender
ENUM
(
''
,
'male'
,
'female'
)
NOT
NULL
DEFAULT
'male'
,
groups
SET
(
''
,
'a'
,
'b'
,
'c'
)
NOT
NULL
DEFAULT
''
,
birthday
DATE
NOT
NULL
DEFAULT
'0000-00-00'
id
BIGINT
AUTO_INCREMENT
PRIMARY
KEY
,
name
VARCHAR
(
128
)
NOT
NULL
DEFAULT
''
,
firstname
VARCHAR
(
128
)
NOT
NULL
DEFAULT
''
,
picture
VARCHAR
(
255
)
NOT
NULL
DEFAULT
''
,
gender
ENUM
(
''
,
'male'
,
'female'
)
NOT
NULL
DEFAULT
'male'
,
groups
SET
(
''
,
'a'
,
'b'
,
'c'
)
NOT
NULL
DEFAULT
''
,
birthday
DATE
NOT
NULL
DEFAULT
'0000-00-00'
,
modified
TIMESTAMP
NOT
NULL
DEFAULT
CURRENT_TIMESTAMP
,
created
DATETIME
NOT
NULL
DEFAULT
'0000-00-00 00:00:00'
);
#
...
...
@@ -17,12 +20,14 @@ INSERT INTO Person (id, name, firstname, gender, groups) VALUES
DROP
TABLE
IF
EXISTS
PersFunction
;
CREATE
TABLE
PersFunction
(
id
BIGINT
AUTO_INCREMENT
PRIMARY
KEY
,
id
BIGINT
AUTO_INCREMENT
PRIMARY
KEY
,
personId
BIGINT
,
type
ENUM
(
'Student'
,
'Assistant'
,
'Professor'
,
'Administration'
),
start
DATE
NOT
NULL
DEFAULT
'0000-00-00'
,
end
DATE
NOT
NULL
DEFAULT
'0000-00-00'
,
note
VARCHAR
(
255
)
start
DATE
NOT
NULL
DEFAULT
'0000-00-00'
,
end
DATE
NOT
NULL
DEFAULT
'0000-00-00'
,
note
VARCHAR
(
255
),
modified
TIMESTAMP
NOT
NULL
DEFAULT
CURRENT_TIMESTAMP
,
created
DATETIME
NOT
NULL
DEFAULT
'0000-00-00 00:00:00'
);
#
---------------------------
...
...
@@ -73,12 +78,15 @@ VALUES
#
DROP
TABLE
IF
EXISTS
Address
;
CREATE
TABLE
Address
(
id
BIGINT
AUTO_INCREMENT
PRIMARY
KEY
,
personId
BIGINT
,
id
BIGINT
AUTO_INCREMENT
PRIMARY
KEY
,
personId
BIGINT
,
street
VARCHAR
(
128
),
city
VARCHAR
(
128
),
country
ENUM
(
'Switzerland'
,
'Austria'
,
'France'
,
'Germany'
),
gr_id_typ
BIGINT
gr_id_typ
BIGINT
,
modified
TIMESTAMP
NOT
NULL
DEFAULT
CURRENT_TIMESTAMP
,
created
DATETIME
NOT
NULL
DEFAULT
'0000-00-00 00:00:00'
);
INSERT
INTO
Address
(
personId
,
street
,
city
)
VALUES
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment