I am using the media gallery file list widget and I would like to limit the results being fetched by the widget by date (current date to less than 30 days).
Hi Steven, I am looking for a way to limit the result being displayed by a certain date range. Right now it would display blank pages for those who do not satisfy the date range condition because the page index is based on gathered media of the defined media gallery.
The workaround would be to pull pages by page size and page index sorted by create date (or whatever date you want to sort by), checking dates along the way and stopping when the desired date is reached. You will likely need to copy each entry into a separate data structure from the list returned from the API, and then provide that data structure to the pager.