filter by date time attribute: month
Permalink
Is there any (simple) way to filter the date time attribute by month?
I sort of wanted to do something like:
But then I realized that wouldn't work because the attribute is a timestamp...
$pl->filterByAttribute($attributeKeyHandle, $value, $comparison)
I sort of wanted to do something like:
$pl->filterByAttribute('event_date_time','january')
But then I realized that wouldn't work because the attribute is a timestamp...
Used php's "intval" method:
Hello,
I would like to have a pagelist like this:
JANUARY
- page 1
- page 2
- page 3
- page 4
FEBRUARY
- page 4
- page 5
- page 6
- page 7
MARCH
- etc...
Does anybody know how to split the pages by months? (C5.6.1)
What would be the $pages loop?
EDIT: Figured this out by using the years and months from the date nav block!
Best wishes,
Nick
I would like to have a pagelist like this:
JANUARY
- page 1
- page 2
- page 3
- page 4
FEBRUARY
- page 4
- page 5
- page 6
- page 7
MARCH
- etc...
Does anybody know how to split the pages by months? (C5.6.1)
What would be the $pages loop?
EDIT: Figured this out by using the years and months from the date nav block!
Best wishes,
Nick