Closed mdee28 closed 10 years ago
Hi, this feature is actually already in News module in block - it means that if you set age e.g. like 30, block shows only items published no longer than 30 days before
Yes, but that's quite block specific. You'd need to say which blocks need this feature and for what data.
This might be possible setting up a filter for core_publishdate. I haven't used the Date filter before but it's in the docs.
As for me publication block, please. What do you mean with "for what data"?
This should be possible with a filter like:
core_publishdate:gt:-1 month
Sadly in my local tests strtotime
is behaving buggy inside FilterUtil.
You can try this in a list and see if works on your site.
Can you explain this a bit more please with a concrete use case?