Strip 'search_hits' from SEARCH_BY_DATE.
[gruta.git] / RELEASE_NOTES
blobb32c1caa085271eeae2d6a8c62b683dbab2a937e
1 Gruta Release Notes
2 ===================
4 2.3.3 "Volterra"
5 ----------------
7  - New features:
8    - The `date' templates now include the `%C_LOCALE' command,
9      that switches temporarily to C locale before parsing
10      the date.
11  - New bin/gruta commands:
12    - `copy_story', to copy a story from one topic to another
13      (like the web interface option).
14    - `delete_story', to do the obvious.
16 2.3.2 "Arezzo"
17 --------------
19  - New features:
20    - A new image search engine (by file name) for admins.
21    - Added support for Gravatars in user comments.
22    - Unless forced, language is selected from the HTTP header.
23    - A new checkbox to show the full story in indexes (so that
24      the abstract and the body are the same, no need to add the
25      magic separator mark at the end).
26    - A new pseudo-url `thumb://', to be used like the `img://'
27      one, that inserts a thumbnail of the image with a link to
28      the real image.
29    - The `RSS_COMMENTS' template now accepts optional `topic'
30      and `id' arguments to return comments only from a story.
31    - New Gruta::CGI argument `cache_control_max_age' (default 300).
32    - If a story is set to year 9999, it's assumed to be disabled
33      forever and fails with a `410 Gone' HTTP error.
34    - All internal redirections are done with an HTTP status of
35      `301 Moved Permanently' instead of `302 Found'.
36  - New configurable options:
37    - The maximum number of days a non-approved comment is hold
38      before being purged.
39    - A default value for the 'show full story in indexes' story
40      configuration item.
41  - New bin/gruta commands:
42    - `rename_tag', to rename or remove a tag.
43  - Bug fixes:
44    - Fixed a crash in RSS and TOPIC when a subscriber-only
45      story was defined.
46    - Fixed comment expiration (comments didn't really expire).
47  - Dropped features:
48    - Artemus4 support.
50 Please take also note that, if you use static links, the following
51 `mod_rewrite' redirections has to be changed from
53  RewriteRule ^/(.+)/([0-9]+)\.html$ /?t=TOPIC&topic=$1&offset=$2 [PT,L]
57  RewriteRule ^/(.+)/~([0-9]+)\.html$ /?t=TOPIC&topic=$1&offset=$2 [PT,L]
59 2.3.1 "Sienna"
60 --------------
62  * New interface to edit the configuration, instead of editing
63    the `cfg_' templates one by one.
64  * Reworked template structure and CSS.
65  * If a story named `index' in the `info' topic exists, it's used
66    to substitute the main body of the `INDEX' page.
67  * Fixed a crash in `LIST' when connected.
68  * Fixed story format in `EDIT_STORY'.
69  * Added support for blogspam.net and Akismet comment SPAM detectors.
70  * If `cfg_top_ten_num' is 0, each story's `hits' counter is not
71    updated (similar to the initialisation variable `dummy_touch' in
72    previous versions, that it's still available).
74 2.3.0 "Lucca"
75 -------------
77  * Stories can now include comments from visitors. Comments
78    are disabled by default (it can be enabled by setting
79    `cfg_disable_comments' in the `config' template to 0) and can also
80    be enabled or disabled on a per story basis. Comments are never
81    automatically published: they require approval one by one, unless
82    it's posted by an identified user that also has section editor
83    capabilities.
84  * Support for the new 5.x version of Artemus has been added.
85    This version is now the recommended one and upgrading of
86    existing installations to it is encouraged, as new features
87    are only implemented on 5.x (as, for example, the new
88    "comments from visitors" feature).
89  * If a story pseudo-url points to a non-existent story, it shows
90    a link to create it (ala Wikis).
91  * Date formatting is done using strftime(), so its full
92    set of percent-prefixed commands is available.
93  * A new field in stories allow a Table of Contents to be
94    created for each story.
95  * A new template `status' has been added to set the HTTP
96    status.
97  * A security bug that allowed to bypass a story's publication
98    date by using the STORY_PRINTABLE template has been fixed.
99  * Improved cookie parsing.
100  * The `gruta_mksite' helper scripts has been renamed to
101    `gruta-mksite' and it's also installed in /usr/local/bin.
102  * Many new commands to the `gruta' command line tool.
103  * All image pseudo-urls include the image's width and height
104    in the `img' tag if the `Image::Size' Perl module is detected
105    and installed.
106  * A timeout watchdog now exists to avoid the CGI hanging for too
107    much with a default of 20 seconds. It can be changed in the
108    creation of the Gruta::CGI object by setting the `query_timeout'
109    argument.
111 2.2.1 "Montecatini"
112 -------------------
114  * Templates are now stored inside source backends instead of
115    having a special directory of plain files. So, it's no
116    longer necessary to prepend the writable directory to
117    the template path in Gruta::Template::Artemus creation.
118  * The TT template toolkit has been officially deprecated.
119  * New global CGI variable `set_date', to force a date to
120    be assumed as today, to be used to take a look at how would
121    a page be shown in the given date. Only usable by a logged-in
122    admin user.
123  * A new script `gruta_mksite', to help in the creation of a
124    new site.
125  * A new command, `set_story_date', has been added to bin/gruta.
126  * The full set of `mod_rewrite' keywords to be used if `static_urls' 
127    is set has been expanded.
129  RewriteRule ^/([0-9]+)\.html$          /?t=INDEX&offset=$1             [PT,L]
130  RewriteRule ^/([0-9]+)-([0-9]+)\.html$ /?t=SEARCH_BY_DATE&from=$1&to=$2 [PT,L]
131  RewriteRule ^/tag/(.+)\.html$          /?t=SEARCH_BY_TAG&tag=$1        [PT,L]
132  RewriteRule ^/tag/$                    /?t=TAGS                        [PT,L]
133  RewriteRule ^/top/$                    /?t=TOP_TEN                     [PT,L]
134  RewriteRule ^/(.+)/$                   /?t=TOPIC&topic=$1              [PT,L]
135  RewriteRule ^/(.+)/index\.html$                /?t=TOPIC&topic=$1              [PT,L]
136  RewriteRule ^/(.+)/([0-9]+)\.html$     /?t=TOPIC&topic=$1&offset=$2    [PT,L]
137  RewriteRule ^/(.+)/(.+)\.html$         /?t=STORY&topic=$1&id=$2        [PT,L]
138  RewriteRule ^/rss\.xml$                        /?t=RSS                         [PT,L]
139  RewriteRule ^/sitemap\.xml$            /?t=SITEMAP                     [PT,L]
140  RewriteRule ^/style\.css$              /?t=CSS                         [PT,L]
143 2.2.0 "Osmannoro"
144 -----------------
146 Please note that version 4.1.2 of the Artemus template toolkit
147 is required for this release to work properly.
149  * Story rendering is cached, resulting in faster page loading.
150  * An existing story can be copied to another topic from the story
151    edition form.
152  * The template `stories_by_date' has changed the order of their
153    output values; now they are topic_id, id and date.
154  * The RSS template now accepts an optional CGI argument `tag', to
155    get feeds on stories by tag.
156  * Multiple sources are no longer supported; it never really worked
157    well, made the code cumbersome and had no real advantage after
158    all. The cgi caller needs not to be changed, as the `sources'
159    argument is still supported (only the first one is used, though),
160    but the scalar `source' is preferred now.
161  * The file format in the FS source has changed; the `.META' extension
162    has been changed to `.M', and `.TAGS' to `.T'. Also, new files
163    appear in the `stories' directory with the `.A' and `.B' extensions,
164    holding the rendered abstract and story body, respectively. The
165    transition is made automatically on the first run, no manual
166    operation is needed.
167  * New argument `hard_top_ten_limit' to Gruta::Source::FS, to set
168    the maximum number of stories to be tested when generating the top
169    read stories index (previously hardcoded to 100).
170  * New argument `min_size_for_gzip' to Gruta::CGI, to set the minimum
171    size for the output body to be Gzip compressed (previously hardcoded
172    to 10000).
173  * If a story pointed by a story:// pseudo-url has a publication date
174    in the future, only the title is shown (i.e., it's not clickable).
175  * The Mbox source is officially deprecated.
176  * Static URLs are also generated for the `CSS', `RSS' and `SITEMAP'
177    pages. The following `mod_rewrite' rule must be added to the ones
178    suggested in the previous version:
180  RewriteRule ^/style\.css$     /?t=CSS              [PT]
182 2.1.1 "Calenzano"
183 -----------------
185  * Fixed a last time bug in the DBI schema generation.
187 2.1.0
188 -----
190  * On-the-fly Gzip compression (if browser accepts it).
191  * New special uris; `abstract', to paste a story's abstract, and `body',
192    to paste the full body of another one.
193  * A new renderer, Text, for plain text content.
194  * New Artemus variables to set HTML metadata; `html_title',
195    `html_description' and `html_keywords'.
196  * A new supertemplate called CSS, that returns the Cascading Style
197    Sheet instead of having it embedded in all output.
198  * A new supertemplate called SITEMAP (to be aliased to /sitemap.xml).
199  * If a story called `index' is present in a topic, the 'TOPIC' template
200    shows its body instead of the list of stories in it.
201  * Several new commands in the `gruta' command line tool; _new_story_ (to
202    create a new story from STDIN), _import_rss_ (to import an RSS file
203    into a topic), _update_story_ (to update a story from STDIN).
204  * Topics and stories now have a new field, `description', that is used
205    in the HTML description meta tag in `TOPIC' or `STORY'.
206  * Internal server errors set the HTTP status to 500.
207  * Some old function templates have been deleted and moved to Artemus.
208  * Many templates have been simplified with new Artemus keywords.
209  * The DBI driver is less verbose on errors.
210  * Those templates more prone to be changed when configuring a new
211    site have been renamed to have a prefix of 'cfg_'.
212  * Added POD documentation to some templates.
213  * Date formatting functions now accept `%w' to print the week day
214    as a number.
215  * New global argument `dummy_touch' to avoid updating the `hits' count
216    of each story.
217  * Several fixes to the Mbox driver.
218  * Don't generate empty 'about' and 'legal' links in 'meta_menu' if
219    they don't exist.
220  * Confirmation is requested when deleting a story.
221  * New global argument `static_urls', that forces some urls (mainly
222    links to topics and stories) to use a simplified, static-like look.
223    You *need* to have the following Apache's mod_rewrite keywords
224    for these urls to be re-converted to usable ones:
226  RewriteEngine On
227  RewriteRule /(img|download)/.* - [L]
228  RewriteRule ^/(.+)/index\.html$ /?t=TOPIC&topic=$1       [PT]
229  RewriteRule ^/(.+)/(.+)\.html$  /?t=STORY&topic=$1&id=$2 [PT]
230  RewriteRule ^/(.+)/$            /?t=TOPIC&topic=$1       [PT]
231  RewriteRule ^/rss\.xml$         /?t=RSS                  [PT]
232  RewriteRule ^/sitemap\.xml$     /?t=SITEMAP              [PT]