We launched new forums in March 2019—
join us there
.
In a hurry for help with your website?
Get Help Now!
Back to MODX.com
Forums
Docs
Revo Issues
Blog
My Forums
Add-ons
Creating & Repurposing Content
getResources and getPage
Search
getResources: date delimiter (since) as &limit?
284 Posts
novolo
Reply #1,
15 years, 2 months ago
Hi all,
is it possible to display resources from diff. folders with a date delimiter?
So all resources from &parents within last 30 days would be displayed within my getResources call?
Thanks!
MODX Free Template Base:
MODX-Boilerplate
|
my blog
(lots of MODX stuff) |
my gitHub
(translations) |
MODX User Groups Germany
(Facebook)
1,039 Posts
MadeMyDay
Reply #2,
15 years, 2 months ago
Should be possible with &where parameter and a custom snippet like:
&where=`{"publishedon:>":"[[!sincewhen]]"}`
Snippet "sincewhen" should return the current date-30 days something like:
<?php return strtotime('-30 day'); ?>
(not tested)
MODx deutsch
|
Webdesign Karlsruhe
|
Ressourcen für Webdesign