template re-work: documentation
[bse.git] / Changes.txt
CommitLineData
c507244d
TC
1Template re-re-work:
2
3 - new, faster, more regular processing internal to tags:
4 - variables supplied by code, similarly to TT, Mason
5 - macro definitions
6 - call macros or files with parameters and localized variables
7
8 TODO:
9 - documentation
10 - integration into BSE template processing
11 - preloaded template
12
1e60d3c4
TC
13BSE 0.22 - unreleased
14========
15
673086da
TC
16Bug fixes:
17
18 - the search index builder was ignoring configured field scores.
19
26b58957
TC
20 - the customer is no longer asked to select a shipper and shipping is
21 set to zero for orders where all products have zero weight.
22 https://rt4.develop-help.com/Ticket/Display.html?id=1328
23
673086da
TC
24Enhancements:
25
1e60d3c4
TC
26 - automatic image insertion can now be disabled globally or on a
27 per-article basis.
28 https://rt4.develop-help.com/Ticket/Display.html?id=1331
29
29ff344f
TC
30Templates:
31
32 - admin/order_detail.tmpl - the product tag now uses tag_article as
33 it should.
34
a2ed0315
TC
35 - admin/subscr/list - isubscription is now an object tag, giving
36 access to the is_removable method
37 https://rt4.develop-help.com/Ticket/Display.html?id=1323
38
39 - admin/subscr/edit, admin/subscr/detail - subscription is now an
40 object tag
41
e860a1d9 42BSE 0.21 - 07 Mar 2012
1be64ebd
TC
43========
44
b25f4d0f
TC
45 - Squirrel::Template has largely been rewritten performing a parsing
46 then a processing step rather than doing many, many s/// over the
47 template text.
48
bf7dd331
TC
49 - verbose output of generate.pl is now based on the template
50 admin/generate.tmpl
1be64ebd 51
bf7dd331 52 - add the referer tag to all dynamic pages
1be64ebd 53
b23cb063
TC
54 - added [undeletable articles] to bse.cfg as a supplement to
55 @NO_DELETE. @NO_DELETE is now deprecated and may be removed in a
56 future release of BSE.
57 https://rt4.develop-help.com/Ticket/Display.html?id=1209
1be64ebd 58
595e72db
TC
59 - iterator inlines can now be filtered (Adrian Oldham)
60
61 - added some more extension to content type mappings for video
62 formats (Adrian Oldham)
63
8ddd08f7
TC
64 - the shopadmin order list targets are now much more efficient - they
65 no longer load the entire order table, are paginated, and let the
66 data do the selection of matching records.
67
68 NOTE: this removes some backward compatibility - iterator filters
69 no longer work and a new tag, all_order_count can be used to fetch
70 order counts. Extra search parameters have been provided to filter
71 the results.
72
73 - added a new adminurl2 tag where the second parameter is a target.
74
3d99ca04
TC
75 - siteusers.pl now flashes all success messages, and success message
76 text is fetched from the messages table
77
54fada18
TC
78 - added is_released and is_expired methods to Article. This should
79 be visible to article tags in templates.
80
41cbde00
TC
81 - more consistently use tag_article on the admin side of the site.
82
c4df989c
TC
83 - make tag_article smarter so it can call more methods
84
47e33eae
TC
85 - consistently use admin_tags instead of the old collection of admin
86 tag methods.
87
a8d74b1e
TC
88 - tag_object (used for object style tags) now checks
89 restricted_method() if implemented for the object.
90
91 - the editor file iterator is now an object iterator, and the efile
92 tag on the file edit page is now an object tag
93
94 - add file_exists to BSE::TB::Article::File
95 https://rt4.develop-help.com/Ticket/Display.html?id=1288
96
5f3c8bf8
TC
97 - refactored makeIndex.pl into makeIndex.pl (web) and
98 util/bse_makeindex.pl (console).
99 Output from these is now encoded using the default BSE encoding.
100 makeIndex.pl can now produce HTML output using admin/makeindex.tmpl
101 The bse_make_index background process now uses the console version.
102 https://rt4.develop-help.com/Ticket/Display.html?id=1301
103
ec5a2133
TC
104 - admin-mode article links now ignore the admin value stored in the
105 article record and always return a link to admin.pl for that
106 article.
107
8329ce1b
TC
108 - add a missing comma to BSE::UI, preventing a warning.
109
bf7dd331
TC
110Bug fixes:
111
112 - thumb.pl would return content types with doubled image/ prefixes,
113 eg. image/image/jpeg
e728024c 114
c710d90c
TC
115 - update BSE::AdminUsers, BSE::ChangePW, BSE::UI::AdminReport to use
116 more modern admin tags
0611c441 117 https://rt4.develop-help.com/Ticket/Display.html?id=1234 (partial)
c710d90c 118 (Adrian Oldham for BSE::ChangePW, BSE::UI::AdminReport)
0611c441 119
5b2aab45
TC
120 - with [site].secureadmin enabled, refreshes to the secure admin url
121 could cause a 500 error.
122
8fb3d3d4
TC
123 - check nomatch fields even for blank fields. Otherwise a field with
124 a LF or CR would not be caught by the dh_one_line validation rule.
125
a8a25cfd
TC
126 - saving a tag from the tag manager without changing the name or
127 deleting a tag that doesn't exist would result in a 500 error.
128 https://rt4.develop-help.com/Ticket/Display.html?id=1287
129
6e56cf75
TC
130 - setting an unfilled order's stage to "shipped" now sets whoFilled
131 and whenFilled for the order.
132 https://rt4.develop-help.com/Ticket/Display.html?id=1286
133
d9b0f5e1
TC
134 - an empty title (but no missing) when saving a user or group file no
135 longer defaults that to the file display name.
136 https://rt4.develop-help.com/Ticket/Display.html?id=1303
137
138 - validation errors are now correctly displayed for adding a user or
139 group file
140 https://rt4.develop-help.com/Ticket/Display.html?id=1302
141
142 - supplying an empty content type when saving a user or group file
143 now resets the content type to that derived from the file's display
144 name.
145 https://rt4.develop-help.com/Ticket/Display.html?id=1304
146
2c2618b0
TC
147 - fix the message id for the "move up a level to section" message in
148 the possible parents drop down.
149
c263b35e
TC
150 - error_img would produce an inline stack trace from an internal
151 error on a failed logon. (logon.pl)
152
8ddd08f7
TC
153Templates:
154
155 - admin/order_list*.tmpl - see the order list re-work above.
156
f8d5dfae 157 - you can now use <:- and -:> as tag delimiters to consume whitespace
b25f4d0f
TC
158 on the left and right of the tag.
159
160 - Squirrel::Template now documents the template syntax more regularly.
161
162 - Squirrel::Template is now much faster in most cases.
163
164 - admin/subscr/detail - the subscription orders iterator now includes
165 the billFirstName, billLastName and filled fields from the
166 order. (Adrian Oldham)
f8d5dfae 167
8ddd08f7
TC
168Internals:
169
170 - added a getCount() method to retrieve a count of matching records.
171
2897cd79 172BSE 0.20 - 22 Dec 2011
6abd8ce8
TC
173========
174
b27af108
TC
175Please read any NOTES below carefully.
176
6abd8ce8
TC
177 - store a truncated card number for credit card payments (both online
178 and email). Reinstate storage of the card holder name in ccName.
179 ccNumberHash is no longer populated.
180
181 - ifNeedDelivery (checkoutnew_base.tmpl) wasn't being reset on order
182 submission.
183
b27af108
TC
184 - the site_users table has been refactored into the bse_siteusers
185 table, removing the bill* fields and adding deliv* fields. Other
186 obsolete fields have also been removed.
187
188 NOTE: To preserve your registered users on upgrade, run the
189 provided schema/site_users_to_members.sql SQL through the mysql
190 tool. This will create entries in bse_siteusers corresponding to
191 those in your original site_users table. You MUST start with an
192 empty bse_siteusers table or the script will throw an error.
193
194 NOTE: Any configuration such as report definitions, query group
195 definitions should now refer to bse_siteusers instead of
196 site_users.
197
198 - Data::UUID 1.148 is now required
199
be262d15
TC
200 - remove target entry for the shop confirm action, which was
201 otherwise removed years ago. RT #1280.
202
fb10b11e
TC
203 - logon now starts a new session, preserving the cart. As a
204 side-effect this logs out the admin user, though this may
205 change. RT #1279.
206
207 - passing a new session id between the SSL and non-SSL versions of
208 the site is now validated. RT #1279.
209
f13d1b43
TC
210 NOTE: This requires that [site].secret be set to a value specific
211 to your site. Running:
212
213 openssl rand -base64 32
214
215 generates a suitable value.
216
fb10b11e
TC
217 - delete the session data for a site users session when they logoff.
218 As a side effect this will log out the admin user.
219
cd1c5bfa
TC
220 - allow dynamic content pages to display flashed messages with the
221 message tag. Note that not all actions flash a message.
222
6abd8ce8
TC
223Template updates:
224
b27af108
TC
225 - checkoutpay_base.tmpl - the name of the cardHolder payment field is
226 now ccName.
227
228 - admin/order_detail.tmpl - order ccPAN can be used to display the
229 truncated card number.
230
231 - user/options_billing_base.tmpl and its generated template have been
232 renamed with s/billing/delivery/ since it now contains delivery
233 details. The link to it from user/options(_base).tmpl has also
234 been updated.
235
236 - user/options_base.tmpl, user/register_base.tmpl,
237 admin/users/(add,edit,view).tmpl have been updated to match the new
238 site users schema.
239
fb10b11e
TC
240 - user/logon_base.tmpl, user/register_base.tmpl - updated the
241 "nothing is more permanent that a temporary solution" link text for
242 logon, register and recover password.
243
cd1c5bfa
TC
244 - shopitem.tmpl - display the flashed message, if any.
245
62e56298
TC
246 - removed the unused checkoutcard and checkoutconfirm templates
247
5f3c8bf8
TC
248 - added admin/generate.tmpl for generate.pl progress output.
249
250 - added admin/makeindex.tmpl for search index verbose output
251
b27af108 252Internals:
6abd8ce8 253
b27af108
TC
254 - Squirrel::Table->make now looks for default_I<colname> when looking
255 for default values for a column.