forked from xperseguers/TYPO3.ext.chgallery
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathext_typoscript_setup.txt
203 lines (171 loc) · 3.62 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
# /***************************
# * Default TS for
# * EXT chgallery
# * Georg Ringer
# * http://www.cyberhouse.at/
# ***************************/
# userFunction to replace spaces with %20 to avoid breaking lightboxes
includeLibs.chgallery = EXT:chgallery/lib/replaceSpaces.php
plugin.tx_chgallery_pi1 {
# general settings
_DEFAULT_PI_VARS.single = 1
fileTypes = jpg,gif,png
templateFile = EXT:chgallery/res/template.html
pathToCSS = EXT:chgallery/res/gallery.css
ajaxScript = EXT:chgallery/res/js/ajax.js
pathToMootools = EXT:chgallery/res/js/mootools.js
pagebrowser = 9
ajax = 0
useAnchor = 1
categoryOrder = path
categoryOrderAscDesc = asc
exif = 1
ratings = 1
ratings {
# config of ratings to override default settings of the ext
}
#################
#### SINGLE VIEW
#################
single {
pass = 1
image {
file.maxW = 554
}
download {
labelStdWrap.field= tx_chgalleryTitle // tx_chgalleryFilename
icon = 1
icon_link = 1
icon {
noTrimWrap = | | |
}
size = 0
size {
noTrimWrap = | (| Bytes) |
bytes = 1
bytes.labels = | Kb| Mb| Gb
}
jumpurl = 1
jumpurl.secure = 1
}
exif_size {
bytes = 1
bytes.labels = | Kb| Mb| Gb
}
exif_time {
strftime= %d.%m.%Y %H:%m
}
}
#################
#### CATEGORY VIEW
#################
category {
image {
file.maxW = 100
}
link {
useCacheHash = 1
}
date {
strftime = %d.%m.%Y %H:%m
}
}
#################
#### GALLERY VIEW
#################
gallery <.single
gallery {
excludeFirstImage = 0
dir_description {
required = 1
stdWrap.wrap = <br />|<br />
}
dir_title {
required = 1
stdWrap.wrap = <strong>|</strong>
}
description {
ifEmpty =
}
image {
file {
maxW = 139
maxH = 110
}
}
renderAllLinks = 0
renderAllLinks {
title.field= tx_chgalleryTitle
parameter.override.cObject = IMG_RESOURCE
parameter.override.cObject {
file.import.field = tx_chgalleryImageLong
file.maxW = 800
file.maxH = 600
}
ATagParams = rel="lightbox"
ATagParams.override = rel="lightbox[presentlb{field:uid}]"
ATagParams.insertData = 1
}
}
cooliris =
cooliris {
link {
useCacheHash = 1
returnLast = url
additionalParams = &type=9713
prefix =
}
showAllGalleriesInCategory = 0
logo =
prefixUrl = 1
}
}
## Set up page/type number:
export_chgallery >
export_chgallery = PAGE
export_chgallery {
typeNum=9712
config.disableAllHeaderCode = 1
config.metaCharset = utf-8
config.additionalHeaders = Content-Type:text/xml;charset=utf-8
config.xhtml_cleaning = 0
config.admPanel = 0
config.sendNoCacheHeaders = 1
config.no_cache = 1
## Inserting the USER cObject for XML rendering
10 = CONTENT
10 {
table = tt_content
select {
pidInList = this
max = 1
andWhere = list_type='chgallery_pi1'
}
renderObj = COA
renderObj {
10 < plugin.tx_chgallery_pi1
10.userFunc = tx_chgallery_pi1->xmlFunc
}
}
}
## Set up page/type number:
chgallerycooliris >
chgallerycooliris = PAGE
chgallerycooliris {
typeNum=9713
config.disableAllHeaderCode = 1
config.metaCharset = utf-8
config.additionalHeaders = Content-Type:text/xml;charset=utf-8
config.xhtml_cleaning = 0
config.admPanel = 0
config.sendCacheHeaders = 1
config.sendNoCacheHeaders = 1
## Inserting the USER cObject for XML rendering
10 = RECORDS
10 {
tables = tt_content
source.data = GP:tx_chgallery_pi1|ceid
conf.tt_content < plugin.tx_chgallery_pi1
conf.tt_content.userFunc = tx_chgallery_pi1->cooliris
}
}