Using group by feature of list builder
-groupby { values { "Day" { { groupby time_stamp } { orderby time_stamp,desc} } } }
The list is { groupby_name { { groupby column } { orderby column,order } } }
Add this to the query as any other filter with template::list::filter_where_clauses.
You can pass as many lists in to the values parameters of group by as columns you want to group on. If you add the listfilters tag to your ADP file, it will show the available grouping options as filters. Make sure you add groupby:optional in ad_page_contract.
Another trick is to hide the column when it is used to grouping. Just dynamically set the hide_p paramter for the list element that is in groupby.
12:05 PM, 10 Jun 2005 by Dave Bauer Permalink | Comments (0)
Replace annoying ^M characters in Emacs
^M = C-q C-m
Resulating in this sequence:
M-%
Query replace: C-q C-m with: C-q C-j
01:02 AM, 10 Jun 2005 by Malte Sussdorff Permalink | Comments (0)
| June 2005 | ||||||
| S | M | T | W | T | F | S |
| 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 | ||