I need to only return past pages from a editable date field with the custom field parameter. ie
unfortunately, this code throws an error. Is there any way to do this?
note: end_date is a text date validated editable region of my clonable page. I know I can use <cms:if less than > with a date however is there any way to get the custom_field to do this?
- Code: Select all
<cms:set curr_date="<cms:date format='Y-m-d H:i:s' />" /> <cms:pages orderby='start_date' order='asc' custom_field="end_date <= curr_date">
unfortunately, this code throws an error. Is there any way to do this?
note: end_date is a text date validated editable region of my clonable page. I know I can use <cms:if less than > with a date however is there any way to get the custom_field to do this?