KK,
I am trying to make it so I can show events on a page using the criteria of start_date to show them.
The problem I am having is I want to show by month.
I created an additional field in the template to choose month, but would like to get rid of that field and just use the start_date.
This is what I have now.
This is what I would like to happen.
The problem is the month is not stored as November, it is stored as the usual yyyy-mm-dd
So is there a way to do something like:
custom_field="start_date = <cms:date start_date format='F' />==November | status!==archive"
I know that's not right, but it helps show what I'm trying to do.
I am trying to make it so I can show events on a page using the criteria of start_date to show them.
The problem I am having is I want to show by month.
I created an additional field in the template to choose month, but would like to get rid of that field and just use the start_date.
This is what I have now.
- Code: Select all
<cms:pages masterpage='sale_template.php' show_future_entries='1' limit='10' paginate='1' custom_field="sale_month==November | status!==archive" order='asc' orderby='start_date'>
This is what I would like to happen.
- Code: Select all
<cms:pages masterpage='sale_template.php' show_future_entries='1' limit='10' paginate='1' custom_field="start_date==November | status!==archive" order='asc' orderby='start_date'>
The problem is the month is not stored as November, it is stored as the usual yyyy-mm-dd
So is there a way to do something like:
custom_field="start_date = <cms:date start_date format='F' />==November | status!==archive"
I know that's not right, but it helps show what I'm trying to do.