*** empty log message ***
[Packages/TYPO3.CMS.git] / misc / 3.0.0 / oldscripts / poll_extTables.inc
1 <?php
2 // ******************************************************************
3 // This is the TypoScript polls table, tt_poll
4 // ******************************************************************
5
6 t3lib_div::loadTCA("tt_content");
7 $TCA["tt_content"]["columns"]["records"]["config"]["allowed"] .= ",tt_poll";
8
9 $PAGES_TYPES["default"]["allowedTables"] .= ",tt_poll";
10
11
12 $TCA[tt_poll] = Array (
13         "ctrl" => Array (
14                 "label" => "title",
15                 "default_sortby" => "ORDER BY title",
16                 "tstamp" => "tstamp",
17                 "delete" => "deleted",
18                 "crdate" => "crdate",
19                 "enablecolumns" => Array (
20                         "disabled" => "hidden",
21                         "starttime" => "starttime"
22 //                      "endtime" => "endtime"
23 // this is handled through the script - voteform with endtime, result without endtime
24                 ),
25                 "title" => "Poll|Afstemning|Abstimmung||Sondaggio|Qestionnaire|Encuesta|Poll|||Anketa||Anket"
26         ),
27         "interface" => Array (
28                 "showRecordFieldList" => "title,question,hidden,votes"
29         ),
30         "columns" => Array (
31                 "title" => Array (
32                         "label" => $LANG_GENERAL_LABELS["title"],
33                         "config" => Array (
34                                 "type" => "input",
35                                 "size" => "40",
36                                 "max" => "256"
37                         )
38                 ),
39                 "question" => Array (
40                         "label" => "Question:|Spørgsmål:|Frage:||Domanda:|Question:|Pregunta:|Vraag:|||Vpra\9aanje:||Soru:",
41                         "config" => Array (
42                                 "type" => "text",
43                                 "cols" => "40",
44                                 "rows" => "2"
45                         )
46                 ),
47                 "answers" => Array (
48                         "label" => "Answers:|Svar:|Antworten:||Risposte:|Réponses:|Respuestas:|Antwoorden:|||Odgovori:||Cevaplar:",
49                         "config" => Array (
50                                 "type" => "text",
51                                 "cols" => "40",
52                                 "rows" => "5"
53                         )
54                 ),
55                 "votes" => Array (
56                         "label" => "Votes:|Stemmer:|Anzahl Stimmen:||Voti:|Votes:|Votos:|Stemmen:|||Glasov:||Oylar:",
57                         "config" => Array (
58                                 "type" => "input",
59                                 "size" => "8",
60                                 "max" => "12",
61                                 "eval" => "int",
62                                 "default" => 0
63                         )
64                 ),
65                 "recordlink" => Array (
66                         "label" => "Link to Record:|Reference til element:|Verknüpfung:||Link to Record:|Liens vers un enregistrement:|Ligar al registro:|Link naar Record:|||Povezava do zapisa:||Kayýta link:",
67                         "config" => Array (
68                                 "type" => "group",
69                                 "internal_type" => "db",
70                                 "allowed" => $TCA[tt_content]["columns"]["records"]["config"]["allowed"],
71                                                         /* "tt_content,tt_address,tt_links,tt_board,tt_guest,tt_calender,tt_products",   */
72                                 "size" => "1",
73                                 "maxitems" => "1",
74                                 "minitems" => "0",
75                                 "show_thumbs" => "1"
76                         )
77                 ),
78                 "starttime" => Array (
79                         "exclude" => 1,
80                         "label" => $LANG_GENERAL_LABELS["starttime"],
81                         "config" => Array (
82                                 "type" => "input",
83                                 "size" => "7",
84                                 "max" => "20",
85                                 "eval" => "date",
86                                 "checkbox" => "0",
87                                 "default" => "0"
88                         )
89                 ),
90                 "endtime" => Array (
91                         "exclude" => 1,
92                         "label" => $LANG_GENERAL_LABELS["endtime"],
93                         "config" => Array (
94                                 "type" => "input",
95                                 "size" => "7",
96                                 "max" => "20",
97                                 "eval" => "date",
98                                 "checkbox" => "0",
99                                 "default" => "0",
100                                 "range" => Array (
101                                         "upper" => mktime(0,0,0,12,31,2020),
102                                         "lower" => mktime(0,0,0,date("m")-1,date("d"),date("Y"))
103                                 )
104                         )
105                 ),
106                 "hidden" => Array (
107                         "exclude" => 1,
108                         "label" => $LANG_GENERAL_LABELS["hidden"],
109                         "config" => Array (
110                                 "type" => "check",
111                                 "default" => "1"
112                         )
113                 )
114         ),
115         "types" => Array (
116                 "1" => Array("showitem" => "hidden, title, question, answers, votes, starttime, endtime, recordlink")
117         )
118 );
119 ?>