]> git.imager.perl.org - bse.git/blame - site/cgi-bin/bse.cfg
allow site specific preloads
[bse.git] / site / cgi-bin / bse.cfg
CommitLineData
2eca61d5
TC
1[site]
2name=SomeSite
b19047a6
TC
3; url should not include a trailing /
4url=http://your.site.base
5secureurl=$(url)
d980b7fa 6public_files=/managed_assets/
2eca61d5 7
4ef01459
TC
8[basic]
9randomdata = /dev/urandom
9168c88c 10access_control=0
6430ee52 11file_handlers=flv
b62cae00 12preload_template=preload.tmpl
4ef01459 13
2eca61d5
TC
14[paths]
15; the following needs to be set to a path writable by the BSE processes
771ab646
TC
16; set [paths].siteroot
17downloads = $(siteroot)/uploads
18siteuser_images = $(downloads)
19dynamic_cache=$(siteroot)/cache
20backgroundlogs=$(siteroot)/backlogs
21public_html=$(siteroot)/htdocs
d980b7fa 22public_files=$(public_html)/managed_assets
771ab646 23images=$(public_html)/managed_assets
da24de93 24data=$(siteroot)/data
771ab646
TC
25templates=$(siteroot)/templates
26
27[uri]
28images=/managed_assets
2eca61d5
TC
29
30[pregenerate]
31
32; the following are required by the system - don't modify them
3fb296b8
TC
33user/editbooking.tmpl = user,user/base_editbooking.tmpl
34user/bookingdetail.tmpl = user,user/base_bookingdetail.tmpl
35user/cancelbooking.tmpl = user,user/base_cancelbooking.tmpl
36user/bookinglist.tmpl = user,user/base_bookinglist.tmpl
ab2cd916 37user/orderdetail.tmpl = user,user/base_orderdetail.tmpl
492998c7 38user/orderdetaila.tmpl = user,user/base_orderdetail.tmpl
4ef01459
TC
39user/alreadyblacklisted.tmpl = user,user/alreadyblacklisted_base.tmpl
40user/blacklistdone.tmpl = user,user/blacklistdone_base.tmpl
41user/cantunsub.tmpl = user,user/cantunsub_base.tmpl
42user/confirmed.tmpl = user,user/confirmed_base.tmpl
43user/confsent.tmpl = user,user/confsent_base.tmpl
2a295ea9 44user/confsent_nop.tmpl = user,user/confsent_nop_base.tmpl
4ef01459 45user/email_conferror.tmpl = user,user/email_conferror_base.tmpl
2eca61d5 46user/logon.tmpl = user,user/logon_base.tmpl
2eca61d5 47user/lostemailsent.tmpl = user,user/lostemailsent_base.tmpl
4ef01459 48user/lostpassword.tmpl = user,user/lostpassword_base.tmpl
93be4a7b 49user/lost_prompt.tmpl = user,user/base_lost_prompt.tmpl
2a295ea9 50user/nopassword.tmpl = user,user/nopassword_base.tmpl
4ef01459 51user/options.tmpl = user,user/options_base.tmpl
2a295ea9 52user/options_saved.tmpl = user,user/options_saved_base.tmpl
b27af108 53user/options_delivery.tmpl = user,user/options_delivery_base.tmpl
3c32512d 54user/options_images.tmpl = user,user/options_images_base.tmpl
4ef01459 55user/register.tmpl = user,user/register_base.tmpl
b19047a6 56user/toomany.tmpl = user,user/toomany_base.tmpl
4ef01459 57user/toosoon.tmpl = user,user/toosoon_base.tmpl
531fb3bc
TC
58user/unsuball.tmpl = user,user/unsuball_base.tmpl
59user/unsubone.tmpl = user,user/unsubone_base.tmpl
4ef01459 60user/userpage.tmpl = user,user/userpage_base.tmpl
d49667a2 61user/userpage_wishlist.tmpl = user,user/base_userpage_wishlist.tmpl
32696f84
TC
62user/userpage_files.tmpl = user,user/base_userpage_files.tmpl
63user/userpage_orders.tmpl = user,user/base_userpage_orders.tmpl
d49667a2 64user/wishlist.tmpl = user,user/base_wishlist.tmpl
0eb78304
TC
65user/bookseminar.tmpl = user,user/base_bookseminar.tmpl
66user/bookconfirm.tmpl = user,user/base_bookconfirm.tmpl
67user/bookcomplete.tmpl = user,user/base_bookcomplete.tmpl
5af99440 68user/redirect.tmpl = user,user/base_redirect.tmpl
ee6577c3
TC
69interest/confirm.tmpl = interest,interest/confirm_base.tmpl
70interest/askagain.tmpl = interest,interest/askagain_base.tmpl
71interest/error.tmpl = interest,interest/error_base.tmpl
a5e3fc4b
TC
72formmail/defquery.tmpl = formmail,formmail/defquery_base.tmpl
73formmail/defdone.tmpl = formmail,formmail/defdone_base.tmpl
c2096d67 74error.tmpl = error,error_base.tmpl
0c2e7f7a
TC
75tellafriend/form.tmpl = user,tellafriend/base_form.tmpl
76tellafriend/done.tmpl = user,tellafriend/base_done.tmpl
2eca61d5
TC
77
78[user settings]
79title = My $(site/name)
80
ee6577c3
TC
81[interest settings]
82title = $(site/name) Interest Registration
83
a5e3fc4b
TC
84[formmail settings]
85title = Send us a comment
86
c2096d67
TC
87[error settings]
88title = Error
57d988af 89dynamic = 0
c2096d67 90
2eca61d5
TC
91[messages]
92user/notyourorder = Order $1 isn't your order
721cd24c 93shop/fileitems = You have products in your cart that include downloadable files. Please logon or register before checking out.
6e3d2da5 94shop/logonrequired = This site requires that you be logged on to make a purchase. Please logon or register before checking out.
2eca61d5 95
2404a911
TC
96[downloads]
97; if true, an order must be marked paid for before the user can download
98; the files attached to the products
99;must_be_paid = yes
100; if true, an order must be marked filled before the user can download the
101; files attached to the products
102;must_be_filled = yes
721cd24c
TC
103
104[children of 5]
105template=common/sidebar.tmpl
106template_dirs=sidebar
b19047a6
TC
107
108[extra tags]
b19047a6 109siteUrl = $(site/url)
2a295ea9
TC
110siteName = $(site/name)
111; You can add any static tag definitions you like here
112; salesEmail = someone@yoursite.com
113; salesPhoneNo = 61 2 9999 8888
531fb3bc
TC
114
115[datadump]
116# where to email the data dump
117#to = someone@somewhere
118# program to run to do the dump
119# must take the same parameters as mysqldump
d09682dd 120#mysqldump = /usr/local/mysql/bin/mysqldump
531fb3bc
TC
121
122[subscriptions]
123# if override is non-zero then the fields for the archiving and templates
124# will be available when sending a subscription
125override=1
126
ca9aa2bf
TC
127[level names]
1280=Your Site
918735d1
TC
1291=Page Lev1
1302=Page Lev2
1313=Page Lev3
1324=Page Lev4
1335=Page Lev5
ca9aa2bf
TC
134
135[articles]
136shop=3
caa7299c 137
08123550
TC
138[shop]
139payment_types=0,1,2
140address1=First address line in configuration
141address2=Second address line in configuration
142address3=Third address line in configuration
7b81711b 143enabled=1
08123550 144
caa7299c
TC
145[level 1]
146template=common/default.tmpl
147
148[level 2]
149template=common/default.tmpl
150
151[level 3]
152template=common/default.tmpl
153
154[level 4]
155template=common/default.tmpl
156
157[level 5]
158template=common/default.tmpl
159
160[catalogs]
161template=catalog.tmpl
162
163[products]
164template=shopitem.tmpl
08123550 165
cc9019d1
TC
166[templates]
167admin/edit_2=admin/edit_1
168admin/edit_3=admin/edit_1
169admin/edit_4=admin/edit_1
170admin/edit_5=admin/edit_1
171admin/edit_img=admin/article_img
172admin/edit_file=admin/filelist
173
2076966c
TC
174; this used to be handled via the edit target, but since CVS sucks
175; I won't rename the template
176admin/users/view_orders=admin/users/edit_orders
177
08123550 178[Global permissions]
de193691
TC
179change_body = 8
180change_body_no_shop = 9
181full_access = 0
182full_access_no_shop = 3
08123550 183shop_access = 1
de193691
TC
184shop_orders = 5
185subscriptions = 4
186users_and_groups = 6
6555857d
TC
187confirm_members = 12
188manage_members = 13
08123550
TC
189
190[Article permissions]
de193691 191change_body_doc = 2
7b81711b 192change_body_decendants = 10
de193691 193full_access_doc = 7
7b81711b 194full_access_decendants = 11
08123550 195
de193691
TC
196[permission change_body]
197brief=Title & body (Site)
198help=The user has permission to change only the title & body of all articles or products.
199permissions=edit_field_edit_body,edit_field_edit_title,edit_save
08123550 200descendants=1
de193691 201articles=-1
08123550 202
de193691
TC
203[permission change_body_no_shop]
204brief=Title & body except shop admin
205help=The user has permission to change only the title & body of all
206articles except for the shop.
abf5bbc6 207permissions=edit_field_edit_body,edit_field_edit_title,edit_save
de193691
TC
208descendants=1
209articles=not(3)
08123550 210
de193691
TC
211[permission full_access]
212brief=Full access (Site)
213help=Full access to the article. The user can modify all modifiable fields, delete and add articles at will.
7dd6ebae 214permissions=edit_*,regen_*,bse_*
08123550 215descendants=1
de193691 216articles=-1
08123550 217
de193691
TC
218[permission full_access_no_shop]
219brief=Full access except shop admin
220help=The user has complete access to all articles except for the shop.
221permissions=edit_*,regen_*
08123550 222descendants=1
de193691
TC
223articles=not(3)
224
225[permission shop_access]
226brief=Shop administration
227help=The user has complete access to catalogs or products in the shop.
9168c88c 228permissions=not(admin_*)
de193691
TC
229descendants=1
230articles=3
08123550 231
de193691
TC
232[permission shop_orders]
233brief=Shop orders management
234help=The user can view the order list, order details, and mark orders filled.
235permissions=shop_order_*
da6bc286 236articles=-1
da6bc286 237
de193691
TC
238[permission subscriptions]
239brief=Subscriptions management
240help=The user can create, edit and send subscriptions.
241permissions=subs_*
da6bc286 242articles=-1
da6bc286
TC
243
244[permission users_and_groups]
da6bc286 245brief=User/Group management
de193691 246help=The user can manage users, groups and their permissions.
da6bc286 247permissions=admin_*
de193691
TC
248articles=-1
249
250[permission change_body_doc]
251brief=Title & body (Article)
252help=The user has permission to change only the title & body of this
253article or product.
254permissions=edit_field_edit_body,edit_field_edit_title,edit_save
255
7b81711b
TC
256[permission change_body_decendants]
257brief=Title & body (Article + Decendants)
258help=The user has permission to change only the title & body of this article or product and it's decendants.
259permissions=edit_field_edit_body,edit_field_edit_title,edit_save
260descendants=1
261
de193691
TC
262[permission full_access_doc]
263brief=Full access (Article)
264help=Full access to the article. The user can modify all modifiable
265fields for this article or product.
266permissions=edit_*,regen_*
da6bc286 267
7b81711b
TC
268[permission full_access_decendants]
269brief=Full access (Article + Decendants)
270help=Full access to the article and it's decendants. The user can modify all modifiable fields for this article or product.
271permissions=edit_*,regen_*
272descendants=1
918735d1 273
6555857d
TC
274[permission confirm_members]
275brief=Confirm member email address
276help=The user can manually mark a members email address as confirmed.
277permissions=bse_members_confirm
278articles=-1
279
280[permission manage_members]
281brief=Member management
282help=The user can manage site members
283permissions=bse_members_user_*,bse_members_group_*
284articles=-1
285
918735d1 286[article flags]
3f36e485
TC
287A=Disallow browser caching (default, dynamic articles only)
288B=Allow browser caching (dynamic articles only)
289C=Don't index this article or it's descendants
70c6e1e1 290D=Disable linking
3f36e485 291F=Descendants inherit Always Dynamic
918735d1 292I=Index even if hidden
cc9019d1 293N=Don't index even if listed
efcc5a30 294R=Regenerate even if we're using JIT regen (dynamic pages only)
538b7aee 295P=Link to parent
918735d1
TC
296
297[article 1]
298extra_templates=index.tmpl
299
300[article 2]
301extra_templates=index2.tmpl
b553afa2
TC
302
303[reports]
304sales_summ_by_product=Sales Summary By Product
305product_sales_over_time=Product Sales Over Time
2d873eb6
TC
306monthly_sales=Monthly Sales
307quarterly_sales=Quarterly Sales
308weekly_sales=Weekly Sales
309yearly_sales=Yearly Sales
310total_sales=Total Sales
311users_vs_orders=Users vs Orders
9063386f 312user_products=Products bought by User
988d8721 313bse_test=Test report
538b7aee 314bse_recent_regos=Recent registrations
b553afa2
TC
315
316[report sales_summ_by_product]
2d873eb6 317sql1=select pr.articleId as "Id", ar.title as "Product", count(*) as "Units" from article ar, product pr, order_item oi where ar.id = pr.articleId and pr.articleId = oi.productId group by pr.articleId, ar.title
9063386f
TC
318sql1link1=<a href="/cgi-bin/admin/report.pl?s_show=1&r=product_sales_over_time&p1=${Id}">Sales Over Time</a>
319sql1link2=<a href="/cgi-bin/admin/add.pl?id=${Id}">Edit</a>
9615cff6
TC
320sort1=-Units;By Unit from highest;order by 3 desc
321sort2=+Units;By Unit;order by 3
322sort3=+Product;Product name;order by 2
323sort4=-Product;Reverse product name;order by 2 desc
b553afa2
TC
324
325[report product_sales_over_time]
2d873eb6 326sql1=select year(od.orderDate) as "Year", month(od.orderDate) as "Month", count(*) as 'Units' from order_item oi, orders od where oi.orderId = od.id and productId = ? group by year(od.orderDate), month(od.orderDate) order by 1 DESC, 2 DESC
650a6188 327sql1params=1
b553afa2 328param1=product,Product
9615cff6
TC
329sort1=-Year;Reverse time order;order by 1 desc, 2 desc
330sort2=+Year;Time order;order by 1 asc, 2 asc
331sort3=-Units;By units desc;order by 3 desc
332sort4=+Units;By units asc;order by 3 asc
b553afa2 333
2d873eb6 334[report weekly_sales]
b27af108 335sql1=select year(od.orderDate) as "Year", week(od.orderDate) as "Week", count(*) as 'Orders', format(sum(od.total)/100.0,2) as '$ Total', count(su.userId) as 'Logon Orders' from orders od left join bse_siteusers su on od.userId =su.userId group by year(od.orderDate), week(od.orderDate) order by 1 DESC, 2 DESC
2d873eb6
TC
336
337[report monthly_sales]
b27af108 338sql1=select year(od.orderDate) as "Year", month(od.orderDate) as "Month", format(sum(od.total)/100.0,2) as 'Total', count(*) as 'Count', count(su.userId) as 'User Registered' from orders od left join bse_siteusers su on od.userId = su.userId group by year(od.orderDate), month(od.orderDate) order by 1 DESC, 2 DESC
2d873eb6
TC
339
340[report quarterly_sales]
341sql1=select year(od.orderDate) as "Year", quarter(od.orderDate) as "Quarter", format(sum(od.total)/100.0,2) as 'Total', count(*) as 'Count' from orders od group by year(od.orderDate), quarter(od.orderDate) order by 1 DESC, 2 DESC
342
343[report yearly_sales]
b27af108 344sql1=select year(od.orderDate) as "Year", count(*) as "Orders",format(sum(od.total)/100.0,2) as '$ Total', count(su.userId) as 'Logon Orders' from orders od left join bse_siteusers su on od.userId = su.userId group by year(od.orderDate) order by 1 DESC
2d873eb6
TC
345
346[report total_sales]
b27af108 347sql1=select count(*) as "Orders", format(sum(total)/100.0,2) as '$ Total', count(su.userId) as 'Logon Orders' from orders od left join bse_siteusers su on od.userId = su.userId
2d873eb6
TC
348
349[report user_products]
b27af108 350sql1=select pr.title, count(*) as 'Count' from orders od, order_item oi, article pr, bse_siteusers su where oi.orderId = od.id and oi.productId = pr.id and su.userId = od.userId and su.id = ? group by pr.id
9063386f
TC
351sql1params=1
352param1=site_user,User
2d873eb6
TC
353
354[report users_vs_orders]
355sql1=select delivFirstName as "First Name", delivLastName as "Last Name", userId as "Logon", format(sum(total)/100.0,2) as '$ Total', count(*) as "Orders" from orders group by delivFirstName, delivLastName order by 5 DESC, 2
356
b553afa2
TC
357[report datatype product]
358type=sql
359sql=select ar.id as "id", ar.title as "label" from article ar, product pr where ar.id = pr.articleId order by 2
650a6188
TC
360novalues=[ You don't have any products ]
361
538b7aee
TC
362[report bse_recent_regos]
363sql1=<<SQL
364select id, userId as "Logon", name1 as "First Name", name2 as "Last Name", whenRegistered as "When Registered"
b27af108 365from bse_siteusers
538b7aee
TC
366where whenRegistered > date_sub(now(), interval 7 day)
367order by whenRegistered desc
368SQL
369
370
650a6188
TC
371[report datatype article]
372type=sql
373sql=select id, concat(title, ' (', id, ')') as "label" from article
77804754 374
2d873eb6
TC
375[report datatype site_user]
376type=sql
b27af108 377sql=select id, userId as "label" from bse_siteusers
2d873eb6
TC
378novalues=[ There are no registered users ]
379
988d8721
TC
380[report bse_test]
381sql1=select id, title from article where id = ?
382hide=1
383param1=article,Article
384sql1params=1
385
77804754
TC
386[valid child types]
387Article=Article
388Catalog=Catalog,Product
389Product=
95989433
TC
390
391[protect link]
392; articles for which the link field should not be overwritten
393; the values are ignored, but you can include descriptions
3941=home page
3953=shop
3966=formatting guide
3977=RDF
2a295ea9 398
ab2cd916
TC
399[editor]
400;allow_thumbs=1
401;thumbs_class=BSE::Thumb::Imager
8aa7eb30 402file_display=small
ab2cd916 403
2a295ea9
TC
404[site users]
405display_name1=First Name
406display_name2=Last Name
b27af108 407display_street=Street
2a295ea9
TC
408display_postcode=Post code
409display_telephone=Phone
829c9ed9 410
2076966c 411[nonajax user agents]
9b3a5df0
TC
412ie4=MSIE 4
413ie5=MSIE 5.01
2076966c
TC
414
415[ajax user agents]
38de0036 416mozilla=^Mozilla/5\.0
9b3a5df0
TC
417ie5=MSIE 5.5
418ie6=MSIE 6
419ie7=MSIE 7
420ie8=MSIE 8
421safari=Safari
422khtml=KHTML
423opera=Opera
2076966c
TC
424
425[ajax definitions]
454cdabb
TC
426includes=<<INLINE
427inline:<script type="text/javascript" src="/js/prototype.js"></script>
428<script type="text/javascript" src="/js/scriptaculous.js"></script>
5f3a2963 429<script type="text/javascript" src="/js/scriptoverride.js"></script>
454cdabb 430INLINE
2076966c 431
0eb78304
TC
432[nuser controllers]
433user=BSE::UI::User
5af99440 434redirect=BSE::UI::Redirect
e7367b88
TC
435shop=BSE::UI::Shop
436search=BSE::UI::Search
437page=BSE::UI::Page
0c2e7f7a 438tellafriend=BSE::UI::Tellafriend
85aba847 439default=shop
e7367b88 440
4c4d3c3f 441[nadmin controllers]
95e517da 442shopadmin=BSE::UI::AdminShop
75b07edf 443modules=BSE::UI::AdminModules
95e517da 444log=BSE::UI::AdminAudit
e0946a86 445importer=BSE::UI::AdminImporter
0eb78304 446
829c9ed9 447[includes]
2d42cf8f
TC
44800install=bse-install.cfg
44910bsecfg_d=cfg/
0c2e7f7a
TC
450
451[mail resources]
452stylesheet=email/email.css,text/css,1
453
454[targets]
455tellafriend=/cgi-bin/nuser.pl/tellafriend/TARGET
456tellafriend_n=/cgi-bin/nuser.pl/tellafriend
f40af7e2
TC
457
458[thumb geometries]
459editor=scale(200x200)
eac3131d 460sadmingall=scale(120x120),dropshadow(),canvas(140x140,bgalpha:0),format(png)
3f9c8a96 461search=scale(150x120)
6430ee52
TC
462
463[file handlers]
464flv=BSE::FileHandler::FLV
bf921eb7 465
fea96500 466[template descriptions]
bf921eb7 467common/default.tmpl=Default template
ebc63b18 468
c925a6af
TC
469[nightly work]
470bse_session_clean=1
471bse_audit_log_clean=1
fd737137
TC
472
473[undeletable articles]
4741=home page
4752=more home page
4765=sidebar