How to show records for specified year and month only
17 posts by 2 authors in: Forums > CMS Builder
Last Post: January 12, 2008 (RSS)
By grauchut - January 10, 2008 - edited: January 13, 2008
Re: [grauchut] Does CMS Builder limit amount of content per page?
By Dave - January 10, 2008
list.php?year=2007&mon=1
or
list.php/2007/01/
And then filter the records with that so we only show records in January 2007.
interactivetools.com
Re: [Dave] Does CMS Builder limit amount of content per page?
By grauchut - January 10, 2008
Re: [grauchut] Does CMS Builder limit amount of content per page?
By Dave - January 11, 2008
// custom search filter
$where = "";
if (@$FORM['year'] && @$FORM['mon']) {
$escapedYear = escapeMysqlString($FORM['year']);
$escapedMon = escapeMysqlString($FORM['mon']);
$where = "YEAR(date) = '$escapedYear' AND MONTH(date) = '$escapedMon'";
}
Then update the where option like this:
$options['where'] = $where;
Then you'll be able to list records with certain dates like this: listViewer.php?year=2007&mon=12
Hope that helps!
interactivetools.com
Re: [Dave] Does CMS Builder limit amount of content per page?
By grauchut - January 12, 2008
Re: [grauchut] Does CMS Builder limit amount of content per page?
By grauchut - January 12, 2008
List Viewer (index): Invalid page number '06', there are only '1' pages!
Re: [grauchut] Does CMS Builder limit amount of content per page?
By Dave - January 12, 2008
list.php?year=2007&mon=1&page=1
or, if you want that viewer to always show _all_ the results for the specified date then you can hardcode it like this:
$options['perPage'] = '9999';
$options['pageNum'] = '1'
interactivetools.com
Re: [Dave] Does CMS Builder limit amount of content per page?
By grauchut - January 12, 2008
How can I get the thumbnail size and width to change. I changed it in the modify section but it still appears the same size?
Re: [grauchut] Does CMS Builder limit amount of content per page?
By Dave - January 12, 2008
Do you have many images that you need to resize to the new size?
interactivetools.com
Re: [Dave] Does CMS Builder limit amount of content per page?
By grauchut - January 12, 2008
Also the link works but it shows all incidents on the main page. I did a test with one for the year 2012 and I have the link set to 2007.