]> git.imager.perl.org - bse.git/blame - site/cgi-bin/bse.cfg
0.14_27 commit
[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)
2eca61d5 6
4ef01459
TC
7[basic]
8randomdata = /dev/urandom
9168c88c 9access_control=0
4ef01459 10
2eca61d5
TC
11[paths]
12; the following needs to be set to a path writable by the BSE processes
13downloads = /somewhere
3c32512d 14siteuser_images = $(paths/downloads)
2eca61d5
TC
15
16[pregenerate]
17
18; the following are required by the system - don't modify them
4ef01459
TC
19user/alreadyblacklisted.tmpl = user,user/alreadyblacklisted_base.tmpl
20user/blacklistdone.tmpl = user,user/blacklistdone_base.tmpl
21user/cantunsub.tmpl = user,user/cantunsub_base.tmpl
22user/confirmed.tmpl = user,user/confirmed_base.tmpl
23user/confsent.tmpl = user,user/confsent_base.tmpl
2a295ea9 24user/confsent_nop.tmpl = user,user/confsent_nop_base.tmpl
4ef01459 25user/email_conferror.tmpl = user,user/email_conferror_base.tmpl
2eca61d5 26user/logon.tmpl = user,user/logon_base.tmpl
2eca61d5 27user/lostemailsent.tmpl = user,user/lostemailsent_base.tmpl
4ef01459 28user/lostpassword.tmpl = user,user/lostpassword_base.tmpl
2eca61d5 29user/lostpwdemail.tmpl = user,user/lostpwdemail_base.tmpl
2a295ea9 30user/nopassword.tmpl = user,user/nopassword_base.tmpl
4ef01459 31user/options.tmpl = user,user/options_base.tmpl
2a295ea9 32user/options_saved.tmpl = user,user/options_saved_base.tmpl
9063386f 33user/options_billing.tmpl = user,user/options_billing_base.tmpl
3c32512d 34user/options_images.tmpl = user,user/options_images_base.tmpl
4ef01459 35user/register.tmpl = user,user/register_base.tmpl
b19047a6 36user/toomany.tmpl = user,user/toomany_base.tmpl
4ef01459 37user/toosoon.tmpl = user,user/toosoon_base.tmpl
531fb3bc
TC
38user/unsuball.tmpl = user,user/unsuball_base.tmpl
39user/unsubone.tmpl = user,user/unsubone_base.tmpl
4ef01459 40user/userpage.tmpl = user,user/userpage_base.tmpl
ee6577c3
TC
41interest/confirm.tmpl = interest,interest/confirm_base.tmpl
42interest/askagain.tmpl = interest,interest/askagain_base.tmpl
43interest/error.tmpl = interest,interest/error_base.tmpl
2eca61d5
TC
44
45[user settings]
46title = My $(site/name)
47
ee6577c3
TC
48[interest settings]
49title = $(site/name) Interest Registration
50
2eca61d5
TC
51[messages]
52user/notyourorder = Order $1 isn't your order
721cd24c 53shop/fileitems = You have products in your cart that include downloadable files. Please logon or register before checking out.
6e3d2da5 54shop/logonrequired = This site requires that you be logged on to make a purchase. Please logon or register before checking out.
2eca61d5 55
2404a911
TC
56[downloads]
57; if true, an order must be marked paid for before the user can download
58; the files attached to the products
59;must_be_paid = yes
60; if true, an order must be marked filled before the user can download the
61; files attached to the products
62;must_be_filled = yes
721cd24c
TC
63
64[children of 5]
65template=common/sidebar.tmpl
66template_dirs=sidebar
b19047a6
TC
67
68[extra tags]
b19047a6 69siteUrl = $(site/url)
2a295ea9
TC
70siteName = $(site/name)
71; You can add any static tag definitions you like here
72; salesEmail = someone@yoursite.com
73; salesPhoneNo = 61 2 9999 8888
531fb3bc
TC
74
75[datadump]
76# where to email the data dump
77#to = someone@somewhere
78# program to run to do the dump
79# must take the same parameters as mysqldump
d09682dd 80#mysqldump = /usr/local/mysql/bin/mysqldump
531fb3bc
TC
81
82[subscriptions]
83# if override is non-zero then the fields for the archiving and templates
84# will be available when sending a subscription
85override=1
86
ca9aa2bf
TC
87[level names]
880=Your Site
918735d1
TC
891=Page Lev1
902=Page Lev2
913=Page Lev3
924=Page Lev4
935=Page Lev5
ca9aa2bf
TC
94
95[articles]
96shop=3
caa7299c 97
08123550
TC
98[shop]
99payment_types=0,1,2
100address1=First address line in configuration
101address2=Second address line in configuration
102address3=Third address line in configuration
7b81711b 103enabled=1
d49f56a6
TC
104display_billAddress=Billing Address
105display_name1=First Name
106display_name2=Last Name
107display_address=Address
08123550 108
caa7299c
TC
109[level 1]
110template=common/default.tmpl
111
112[level 2]
113template=common/default.tmpl
114
115[level 3]
116template=common/default.tmpl
117
118[level 4]
119template=common/default.tmpl
120
121[level 5]
122template=common/default.tmpl
123
124[catalogs]
125template=catalog.tmpl
126
127[products]
128template=shopitem.tmpl
08123550 129
cc9019d1
TC
130[templates]
131admin/edit_2=admin/edit_1
132admin/edit_3=admin/edit_1
133admin/edit_4=admin/edit_1
134admin/edit_5=admin/edit_1
135admin/edit_img=admin/article_img
136admin/edit_file=admin/filelist
137
08123550 138[Global permissions]
de193691
TC
139change_body = 8
140change_body_no_shop = 9
141full_access = 0
142full_access_no_shop = 3
08123550 143shop_access = 1
de193691
TC
144shop_orders = 5
145subscriptions = 4
146users_and_groups = 6
08123550
TC
147
148[Article permissions]
de193691 149change_body_doc = 2
7b81711b 150change_body_decendants = 10
de193691 151full_access_doc = 7
7b81711b 152full_access_decendants = 11
08123550 153
de193691
TC
154[permission change_body]
155brief=Title & body (Site)
156help=The user has permission to change only the title & body of all articles or products.
157permissions=edit_field_edit_body,edit_field_edit_title,edit_save
08123550 158descendants=1
de193691 159articles=-1
08123550 160
de193691
TC
161[permission change_body_no_shop]
162brief=Title & body except shop admin
163help=The user has permission to change only the title & body of all
164articles except for the shop.
abf5bbc6 165permissions=edit_field_edit_body,edit_field_edit_title,edit_save
de193691
TC
166descendants=1
167articles=not(3)
08123550 168
de193691
TC
169[permission full_access]
170brief=Full access (Site)
171help=Full access to the article. The user can modify all modifiable fields, delete and add articles at will.
172permissions=edit_*,regen_*
08123550 173descendants=1
de193691 174articles=-1
08123550 175
de193691
TC
176[permission full_access_no_shop]
177brief=Full access except shop admin
178help=The user has complete access to all articles except for the shop.
179permissions=edit_*,regen_*
08123550 180descendants=1
de193691
TC
181articles=not(3)
182
183[permission shop_access]
184brief=Shop administration
185help=The user has complete access to catalogs or products in the shop.
9168c88c 186permissions=not(admin_*)
de193691
TC
187descendants=1
188articles=3
08123550 189
de193691
TC
190[permission shop_orders]
191brief=Shop orders management
192help=The user can view the order list, order details, and mark orders filled.
193permissions=shop_order_*
da6bc286 194articles=-1
da6bc286 195
de193691
TC
196[permission subscriptions]
197brief=Subscriptions management
198help=The user can create, edit and send subscriptions.
199permissions=subs_*
da6bc286 200articles=-1
da6bc286
TC
201
202[permission users_and_groups]
da6bc286 203brief=User/Group management
de193691 204help=The user can manage users, groups and their permissions.
da6bc286 205permissions=admin_*
de193691
TC
206articles=-1
207
208[permission change_body_doc]
209brief=Title & body (Article)
210help=The user has permission to change only the title & body of this
211article or product.
212permissions=edit_field_edit_body,edit_field_edit_title,edit_save
213
7b81711b
TC
214[permission change_body_decendants]
215brief=Title & body (Article + Decendants)
216help=The user has permission to change only the title & body of this article or product and it's decendants.
217permissions=edit_field_edit_body,edit_field_edit_title,edit_save
218descendants=1
219
de193691
TC
220[permission full_access_doc]
221brief=Full access (Article)
222help=Full access to the article. The user can modify all modifiable
223fields for this article or product.
224permissions=edit_*,regen_*
da6bc286 225
7b81711b
TC
226[permission full_access_decendants]
227brief=Full access (Article + Decendants)
228help=Full access to the article and it's decendants. The user can modify all modifiable fields for this article or product.
229permissions=edit_*,regen_*
230descendants=1
918735d1
TC
231
232[article flags]
233I=Index even if hidden
cc9019d1
TC
234N=Don't index even if listed
235C=Don't index this article or it's descendants
918735d1
TC
236
237[article 1]
238extra_templates=index.tmpl
239
240[article 2]
241extra_templates=index2.tmpl
b553afa2
TC
242
243[reports]
244sales_summ_by_product=Sales Summary By Product
245product_sales_over_time=Product Sales Over Time
2d873eb6
TC
246monthly_sales=Monthly Sales
247quarterly_sales=Quarterly Sales
248weekly_sales=Weekly Sales
249yearly_sales=Yearly Sales
250total_sales=Total Sales
251users_vs_orders=Users vs Orders
9063386f 252user_products=Products bought by User
b553afa2
TC
253
254[report sales_summ_by_product]
2d873eb6 255sql1=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
256sql1link1=<a href="/cgi-bin/admin/report.pl?s_show=1&r=product_sales_over_time&p1=${Id}">Sales Over Time</a>
257sql1link2=<a href="/cgi-bin/admin/add.pl?id=${Id}">Edit</a>
b553afa2
TC
258
259[report product_sales_over_time]
2d873eb6 260sql1=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 261sql1params=1
b553afa2
TC
262param1=product,Product
263
2d873eb6
TC
264[report weekly_sales]
265sql1=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 site_users su on od.userId =su.userId group by year(od.orderDate), week(od.orderDate) order by 1 DESC, 2 DESC
266
267[report monthly_sales]
268sql1=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 site_users su on od.userId = su.userId group by year(od.orderDate), month(od.orderDate) order by 1 DESC, 2 DESC
269
270[report quarterly_sales]
271sql1=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
272
273[report yearly_sales]
274sql1=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 site_users su on od.userId = su.userId group by year(od.orderDate) order by 1 DESC
275
276[report total_sales]
277sql1=select count(*) as "Orders", format(sum(total)/100.0,2) as '$ Total', count(su.userId) as 'Logon Orders' from orders od left join site_users su on od.userId = su.userId
278
279[report user_products]
280sql1=select pr.title, count(*) as 'Count' from orders od, order_item oi, article pr, site_users 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
281sql1params=1
282param1=site_user,User
2d873eb6
TC
283
284[report users_vs_orders]
285sql1=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
286
b553afa2
TC
287[report datatype product]
288type=sql
289sql=select ar.id as "id", ar.title as "label" from article ar, product pr where ar.id = pr.articleId order by 2
650a6188
TC
290novalues=[ You don't have any products ]
291
292[report datatype article]
293type=sql
294sql=select id, concat(title, ' (', id, ')') as "label" from article
77804754 295
2d873eb6
TC
296[report datatype site_user]
297type=sql
298sql=select id, userId as "label" from site_users
299novalues=[ There are no registered users ]
300
77804754
TC
301[valid child types]
302Article=Article
303Catalog=Catalog,Product
304Product=
95989433
TC
305
306[protect link]
307; articles for which the link field should not be overwritten
308; the values are ignored, but you can include descriptions
3091=home page
3103=shop
3116=formatting guide
3127=RDF
2a295ea9
TC
313
314[site users]
315display_name1=First Name
316display_name2=Last Name
317display_address=Street
318display_postcode=Post code
319display_telephone=Phone