I have searched the forums but didn’t manage to find an answer. Sorry if its been covered already.
I want to show only documents that were published less than 60 days ago. A kind of whats new page.
I have no idea what I’m doing (as usual:)) but tried to add the following filter to the snipprt but it didn’t work. I’m using 1.0.2
&filter=`pub_date >= CURDATE(),INTERVAL 60 DAY`
-
☆ A M B ☆
- 24,524 Posts
Maybe you could use a snippet to return that value, and use the snippet call as the filter vlaue?
Quote from: sottwell at Jan 29, 2007, 04:13 AM
Maybe you could use a snippet to return that value, and use the snippet call as the filter vlaue?
Thanks Susan, however it doesn’t seem to accept a snippet in the filter. The Ditto snippet appears to dislike nesting as it sees the first ]] used in the filter and stops, displaying only `]] on the page which is the remainder of the Ditto call if that makes sense.
-
☆ A M B ☆
- 24,524 Posts
Alternate [[...]] with [!..!] as you nest the snippets.