zikula-modules / Clip

Flexible Document Creator
35 stars 8 forks source link

Possibility to define maximum age of item in block #143

Closed mdee28 closed 10 years ago

ghost commented 11 years ago

Can you explain this a bit more please with a concrete use case?

mdee28 commented 11 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

ghost commented 11 years ago

Yes, but that's quite block specific. You'd need to say which blocks need this feature and for what data.

matheo commented 11 years ago

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.

mdee28 commented 11 years ago

As for me publication block, please. What do you mean with "for what data"?

matheo commented 10 years ago

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.