forked from TYPO3-svn-archive/wt_directory
-
Notifications
You must be signed in to change notification settings - Fork 0
/
ext_typoscript_setup.txt
643 lines (531 loc) · 12.8 KB
/
ext_typoscript_setup.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
# WT_DIRECTORY PLUGIN #
includeLibs.user_wtdirectory_pagebrowser = EXT:wt_directory/lib/class.user_wtdirectory_pagebrowser.php
# main settings
plugin.tx_wtdirectory_pi1 {
# Constants
template.list = {$plugin.wtdirectory.template.list}
template.detail = {$plugin.wtdirectory.template.detail}
template.ALLmarker = {$plugin.wtdirectory.template.ALLmarker}
template.pagebrowser = {$plugin.wtdirectory.template.pagebrowser}
template.search = {$plugin.wtdirectory.template.search}
template.vcard = {$plugin.wtdirectory.template.vcard}
path.ttaddress_pictures = {$plugin.wtdirectory.path.ttaddress_pictures}
enable.googlemapOnDetail = {$plugin.wtdirectory.enable.googlemapOnDetail}
enable.hideDescription = {$plugin.wtdirectory.enable.hideDescription}
enable.vCardForList = {$plugin.wtdirectory.enable.vCardForList}
enable.vCardForDetail = {$plugin.wtdirectory.enable.vCardForDetail}
enable.powermailForList = {$plugin.wtdirectory.enable.powermailForList}
enable.powermailForDetail = {$plugin.wtdirectory.enable.powermailForDetail}
enable.static_info_tables = {$plugin.wtdirectory.enable.static_info_tables}
morelink_detail.condition = {$plugin.wtdirectory.morelink_detail.condition}
label.vCard = {$plugin.wtdirectory.label.vCard}
label.powermail = {$plugin.wtdirectory.label.powermail}
list.perPage = {$plugin.wtdirectory.list.perPage}
list.orderby = {$plugin.wtdirectory.list.orderby}
detail.title = {$plugin.wtdirectory.detail.title}
detail.emailredirect = {$plugin.wtdirectory.detail.emailredirect}
wrap.addressgroup = {$plugin.wtdirectory.wrap.addressgroup}
filter.cat.disable = {$plugin.wtdirectory.filter.cat.disable}
filter.cat.showAllInDropdown = {$plugin.wtdirectory.filter.cat.showAllInDropdown}
filter.list.clearOldFilter = {$plugin.wtdirectory.filter.list.clearOldFilter}
filter.cat.clearOldFilter = {$plugin.wtdirectory.filter.cat.clearOldFilter}
filter.radialsearch.clearOldFilter = {$plugin.wtdirectory.filter.radialsearch.clearOldFilter}
filter.select = {$plugin.wtdirectory.filter.select}
filter.startlevel = {$plugin.wtdirectory.filter.startlevel}
vCard.utf8 = {$plugin.wtdirectory.vCard.utf8}
# Detail view
detail {
field {
uid = TEXT
uid.field = uid
tstamp = TEXT
tstamp {
field = tstamp
strftime = %d.%m.%Y
}
name = TEXT
name {
field = name
wrap = <h2>|</h2>
}
gender = CASE
gender {
key.field = gender
default = IMAGE
default.file = EXT:wt_directory/files/icon_female.gif
m = IMAGE
m.file = EXT:wt_directory/files/icon_male.gif
}
first_name = TEXT
first_name.field = first_name
middle_name = TEXT
middle_name.field = middle_name
last_name = TEXT
last_name.field = last_name
birthday = TEXT
birthday {
field = birthday
strftime = %d.%m.%Y
}
title = TEXT
title.field = title
email = COA
email {
if.isTrue.field = email
10 = IMAGE
10.file = EXT:wt_directory/files/icon_mail.gif
10.params = style="margin-right: 6px;" class="wt_directory_icon_mail"
20 = TEXT
20.field = email
20.typolink.parameter.field = email
}
phone = COA
phone {
if.isTrue.field = phone
10 = IMAGE
10.file = EXT:wt_directory/files/icon_phone.gif
10.params = style="margin-right: 6px;" class="wt_directory_icon_phone"
20 = TEXT
20.field = phone
}
mobile = COA
mobile {
if.isTrue.field = mobile
10 = IMAGE
10.file = EXT:wt_directory/files/icon_cell.gif
10.params = style="margin-right: 6px;" class="wt_directory_icon_cell"
20 = TEXT
20.field = mobile
}
www = COA
www {
if.isTrue.field = www
10 = IMAGE
10.file = EXT:wt_directory/files/icon_web.gif
10.params = style="margin-right: 6px;" class="wt_directory_icon_www"
20 = TEXT
20.field = www
20.typolink.parameter.field = www
20.typolink.ATagParams = target="_blank"
}
address = TEXT
address {
field = address
br = 1
}
building = TEXT
building.field = building
room = TEXT
room.field = room
company = TEXT
company.field = company
city = TEXT
city.field = city
zip = TEXT
zip.field = zip
region = TEXT
region.field = region
country = TEXT
country.field = country
image = TEXT
image.field = image
image.split {
token = ,
cObjNum = 1
1 {
10 = IMAGE
10.params = class="wt_directory_image"
10.file.import.current = 1
10.file.import.dataWrap = {$plugin.wtdirectory.path.ttaddress_pictures}
10.file.width = 120
10.imageLinkWrap = 1
10.imageLinkWrap.enable = 1
10.imageLinkWrap {
bodyTag = <body style="background-color: white;">
wrap = <a href="javascript:close();">|</a>
JSwindow = 1
JSwindow.newWindow = 1
}
}
}
fax = COA
fax {
if.isTrue.field = fax
10 = IMAGE
10.file = EXT:wt_directory/files/icon_fax.gif
10.params = style="margin-right: 6px;" class="wt_directory_icon_fax"
20 = TEXT
20.field = fax
}
description = TEXT
description {
field = description
br = 1
}
addressgroup = TEXT
addressgroup.field = addressgroup
# add your own marker ###ANYFIELD###
anyfield = TEXT
anyfield.value = This is my new marker
}
}
# List view
list {
field {
uid = TEXT
uid.field = uid
tstamp = TEXT
tstamp {
field = tstamp
strftime = %d.%m.%Y
}
name = TEXT
name {
field = name
wrap = <h2>|</h2>
}
gender = CASE
gender {
key.field = gender
default = IMAGE
default.file = EXT:wt_directory/files/icon_female.gif
m = IMAGE
m.file = EXT:wt_directory/files/icon_male.gif
}
first_name = TEXT
first_name.field = first_name
middle_name = TEXT
middle_name.field = middle_name
last_name = TEXT
last_name.field = last_name
birthday = TEXT
birthday {
field = birthday
strftime = %d.%m.%Y
}
title = TEXT
title.field = title
email = COA
email {
if.isTrue.field = email
10 = IMAGE
10.file = EXT:wt_directory/files/icon_mail.gif
10.params = style="margin-right: 6px;" class="wt_directory_icon_mail"
20 = TEXT
20.field = email
20.typolink.parameter.field = email
}
phone = COA
phone {
if.isTrue.field = phone
10 = IMAGE
10.file = EXT:wt_directory/files/icon_phone.gif
10.params = style="margin-right: 6px;" class="wt_directory_icon_phone"
20 = TEXT
20.field = phone
}
mobile = COA
mobile {
if.isTrue.field = mobile
10 = IMAGE
10.file = EXT:wt_directory/files/icon_cell.gif
10.params = style="margin-right: 6px;" class="wt_directory_icon_cell"
20 = TEXT
20.field = mobile
}
www = COA
www {
if.isTrue.field = www
10 = IMAGE
10.file = EXT:wt_directory/files/icon_web.gif
10.params = style="margin-right: 6px;" class="wt_directory_icon_www"
20 = TEXT
20.field = www
20.typolink.parameter.field = www
20.typolink.ATagParams = target="_blank"
}
address = TEXT
address {
field = address
br = 1
}
building = TEXT
building.field = building
room = TEXT
room.field = room
company = TEXT
company.field = company
city = TEXT
city.field = city
zip = TEXT
zip.field = zip
region = TEXT
region.field = region
country = TEXT
country.field = country
image = IMAGE
image.wrap = |
image.file {
import.dataWrap = {$plugin.wtdirectory.path.ttaddress_pictures}
import.field = image
import.listNum = 0
maxW = 120
}
fax = COA
fax {
if.isTrue.field = fax
10 = IMAGE
10.file = EXT:wt_directory/files/icon_fax.gif
10.params = style="margin-right: 6px;" class="wt_directory_icon_fax"
20 = TEXT
20.field = fax
}
description = TEXT
description {
field = description
br = 1
}
addressgroup = TEXT
addressgroup.field = addressgroup
tt_address_group_title.wrap = |
# add your own marker ###ANYFIELD###
anyfield = TEXT
anyfield.value = This is my new marker
}
links {
detaillink = TYPOLINK
detaillink {
parameter.data = TSFE:id
useCacheHash = 1
useGoogleMapLink = 1
}
}
}
searchAllFields = company, name, city
# Pagebrowser
pagebrowser = HMENU
pagebrowser {
special = userfunction
special.userFunc = user_wtdirectory_pagebrowser->user_pagebrowser
1 = TMENU
1 {
wrap = <ul class="wt_directory_pagebrowser">|</ul>
NO.allWrap = <li>|</li>
ACT = 1
ACT.allWrap = <li>|</li>
ACT.ATagParams = class="act"
}
}
# vCard settings
vCard {
### MAIN ###
# Display name
display_name = COA
display_name {
10 = TEXT
10.field = first_name
10.noTrimWrap = || |
20 = TEXT
20.field = last_name
}
# Firstname
first_name = TEXT
first_name.field = first_name
# Lastname
last_name = TEXT
last_name.field = last_name
# Middle name
middle_name = TEXT
middle_name.field = middle_name
# Title
title = TEXT
title.field = title
# Name prefix
name_prefix = TEXT
name_prefix.field = title
# Name suffix
name_suffix = TEXT
name_suffix.value =
# Email 1
email1 = TEXT
email1.field = email
# Email 2
email2 = TEXT
email2.value =
# Company
company = TEXT
company.field = company
# Room
company = TEXT
company.room = room
### WORK ###
# Phone
work_phone = TEXT
work_phone.field = phone
# Post Office Box
work_po_box = TEXT
work_po_box.value =
# Extended Address
work_extended_address = TEXT
work_extended_address.field = address
# Address
work_address = TEXT
work_address.field = address
# City
work_city = TEXT
work_city.field = city
# State
work_state = TEXT
work_state.field = region
# ZIP
work_zip = TEXT
work_zip.field = zip
# Country
work_country = TEXT
work_country.field = country
### PRIVATE ###
# Phone
home_phone = TEXT
home_phone.field = phone
# Post Office Box
home_po_box = TEXT
home_po_box.value =
# Extended Address
home_extended_address = TEXT
home_extended_address.field = address
# Address
home_address = TEXT
home_address.field = address
# City
home_city = TEXT
home_city.field = city
# State
home_state = TEXT
home_state.field = region
# ZIP
home_zip = TEXT
home_zip.field = zip
# Country
home_country = TEXT
home_country.field = country
### OTHER ###
# Cellphone
cellphone = TEXT
cellphone.field = mobile
# Fax
fax = TEXT
fax.field = fax
# Pager
page = TEXT
page.value =
# URL
www = TEXT
www.value = Homepage
www.typolink {
parameter.data = field : www
returnLast = url
}
# Createdate of vCard
crdate = TEXT
crdate.data = date:U
crdate.strftime = %Y-%m-%d %H:%M:%S
# Birthday
birthday = TEXT
birthday.field = birthday
birthday.strftime = %Y%m%d
# Role
role = TEXT
role.value =
# Note
note = TEXT
note.value = created by wt_directory
# Timezone
timezone = TEXT
timezone.value = +0100
# Filename for vCard
filename = COA
filename.wrap = |.vcf
filename {
10 = TEXT
10.field = first_name
10.noTrimWrap = ||_|
20 = TEXT
20.field = last_name
}
}
debug {
tx_wtdirectory_pi1_list.main {
conf = 0
piVars = 0
sql = 0
}
}
}
# TypeNum 3134 for vCard Download
wtdirectory_vCard = PAGE
wtdirectory_vCard {
typeNum = 3134
10 < plugin.tx_wtdirectory_pi1
config {
disableAllHeaderCode = 1
disablePrefixComment = 1
xhtml_cleaning = 0
admPanel = 0
}
}
# main settings
plugin.tx_wtdirectory_pi2 {
template.filters = {$plugin.wtdirectory.template.filters}
drillDown {
root = 6
continent.selectorBox {
stdWrap.wrap = |
css {
# a integer is added for the depth
id = tx_wtdirectory_pi2_drilldown
class = tx_wtdirectory_pi2_drilldown
}
option.stdWrap.wrap = |
displayAnEmptyOption = 1
displayAnEmptyOption.localLangLabel = continent.selectorBox.emptyOptionLabel
displayAnEmptyOption.label =
}
country.selectorBox {
stdWrap.wrap = |
css {
# a integer is added for the depth
id = tx_wtdirectory_pi2_drilldown
class = tx_wtdirectory_pi2_drilldown
}
option.stdWrap.wrap = |
displayAnEmptyOption = 1
displayAnEmptyOption.localLangLabel = country.selectorBox.emptyOptionLabel
displayAnEmptyOption.label =
}
formtarget{
parameter.data = TSFE:id
section = wtdirectoryFilter
returnLast = url
}
sortCategoriesByTitle = 1
header.wrap = <h3>|</h3>
}
pageFilters {
23.catfilter = 5
345.catfilter = 11
346.catfilter = 12
}
debug {
beforemain {
conf = 0
pluginPiVars = 0
filters = 0
piVars = 0
}
drilldown {
conf = 0
getKey = 0
piVars = 0
}
}
}