Commit 1c8c7c34 authored by Carsten  Rose's avatar Carsten Rose
Browse files

UsersManual/index.rst: adjusted recordId, recordid & fe_user

testtables.sql: added 'picture', 'modified' and 'created'
parent ed000e49
...@@ -140,11 +140,11 @@ Most fields of a form specification might contain: ...@@ -140,11 +140,11 @@ Most fields of a form specification might contain:
* Example: * Example:
*{{recordid}}* *{{r}}*
*{{SELECT name FROM person WHERE id=1234}}* *{{SELECT name FROM person WHERE id=1234}}*
*{{SELECT name FROM person WHERE id={{recordid}} }}* *{{SELECT name FROM person WHERE id={{r}} }}*
*{{SELECT name FROM person WHERE id={{key1:C:alnumx}} }}* *{{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. ...@@ -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). | | 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_user_uid, ...| See Typo3 tt_content record configuration | | T | Typo3: a) Bodytext (ttcontent record), b) Typo3 internal varibles like feUser, ... | See Typo3 tt_content record configuration |
+-----+----------------------------------------------------------------------------------------+----------------------------------------------------------------------------+ +-----+----------------------------------------------------------------------------------------+----------------------------------------------------------------------------+
| V | Vars - Generic variables | | | V | Vars - Generic variables | |
+-----+----------------------------------------------------------------------------------------+----------------------------------------------------------------------------+ +-----+----------------------------------------------------------------------------------------+----------------------------------------------------------------------------+
...@@ -342,8 +342,8 @@ SQL ...@@ -342,8 +342,8 @@ SQL
* Example:: * Example::
{{SELECT id, name FROM Person}} {{SELECT id, name FROM Person}}
{{SELECT id, name, IF({{fe_user}}=0,'Yes','No') FROM Vorlesung WHERE sem_id={{keySemId:Y}} }} {{SELECT id, name, IF({{feUser}}=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_user}} }} }} {{SELECT id, city FROM Address AS adr WHERE adr.p_id={{SELECT id FROM Account AS acc WHERE acc.name={{feUser}} }} }}
* Special case for SELECT input fields. To deliver a result array specify an '!' before the SELECT: * Special case for SELECT input fields. To deliver a result array specify an '!' before the SELECT:
...@@ -1453,7 +1453,7 @@ below. ...@@ -1453,7 +1453,7 @@ below.
+-------------+-------------------------------------------------------------------------------------------------+----------------------------------------------------------+---------------------------------------------------------------+ +-------------+-------------------------------------------------------------------------------------------------+----------------------------------------------------------+---------------------------------------------------------------+
|<page> |TYPO3 page id or page alias. |The current page: *{{pageId}}* |45 application application&N_param1=1045 | |<page> |TYPO3 page id or page alias. |The current page: *{{pageId}}* |45 application application&N_param1=1045 |
+-------------+-------------------------------------------------------------------------------------------------+----------------------------------------------------------+---------------------------------------------------------------+ +-------------+-------------------------------------------------------------------------------------------------+----------------------------------------------------------+---------------------------------------------------------------+
|<recordid> |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 | | |<text> |Text, wrapped by the link. If there is an icon, text will be displayed to the right of it. |empty string | |
+-------------+-------------------------------------------------------------------------------------------------+----------------------------------------------------------+---------------------------------------------------------------+ +-------------+-------------------------------------------------------------------------------------------------+----------------------------------------------------------+---------------------------------------------------------------+
......
DROP TABLE IF EXISTS Person; DROP TABLE IF EXISTS Person;
CREATE TABLE Person ( CREATE TABLE Person (
id BIGINT AUTO_INCREMENT PRIMARY KEY, id BIGINT AUTO_INCREMENT PRIMARY KEY,
name VARCHAR(128), name VARCHAR(128) NOT NULL DEFAULT '',
firstname VARCHAR(128), firstname VARCHAR(128) NOT NULL DEFAULT '',
gender ENUM('', 'male', 'female') NOT NULL DEFAULT 'male', picture VARCHAR(255) NOT NULL DEFAULT '',
groups SET('', 'a', 'b', 'c') NOT NULL DEFAULT '', gender ENUM('', 'male', 'female') NOT NULL DEFAULT 'male',
birthday DATE NOT NULL DEFAULT '0000-00-00' 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 ...@@ -17,12 +20,14 @@ INSERT INTO Person (id, name, firstname, gender, groups) VALUES
DROP TABLE IF EXISTS PersFunction; DROP TABLE IF EXISTS PersFunction;
CREATE TABLE PersFunction ( CREATE TABLE PersFunction (
id BIGINT AUTO_INCREMENT PRIMARY KEY, id BIGINT AUTO_INCREMENT PRIMARY KEY,
personId BIGINT, personId BIGINT,
type ENUM('Student', 'Assistant', 'Professor', 'Administration'), type ENUM('Student', 'Assistant', 'Professor', 'Administration'),
start DATE NOT NULL DEFAULT '0000-00-00', start DATE NOT NULL DEFAULT '0000-00-00',
end DATE NOT NULL DEFAULT '0000-00-00', end DATE NOT NULL DEFAULT '0000-00-00',
note VARCHAR(255) 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 ...@@ -73,12 +78,15 @@ VALUES
# #
DROP TABLE IF EXISTS Address; DROP TABLE IF EXISTS Address;
CREATE TABLE Address ( CREATE TABLE Address (
id BIGINT AUTO_INCREMENT PRIMARY KEY, id BIGINT AUTO_INCREMENT PRIMARY KEY,
personId BIGINT, personId BIGINT,
street VARCHAR(128), street VARCHAR(128),
city VARCHAR(128), city VARCHAR(128),
country ENUM('Switzerland', 'Austria', 'France', 'Germany'), 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 INSERT INTO Address (personId, street, city) VALUES
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment