Is it posible to use random orderby in a specifite time frame? for example random display only the records that this week are submitted?
This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.
The active forums are here.
January 31, 2011 4:04pm
Subscribe [4]#1 / Jan 31, 2011 4:04pm
Is it posible to use random orderby in a specifite time frame? for example random display only the records that this week are submitted?
#2 / Jan 31, 2011 4:23pm
You probably could achieve this with the start_on and stop_before parameters of exp:channel:entries. If you want the dates to be dynamic, you could turn on PHP, set parsing stage to Input and use the strtotime() function of PHP to get a relative date.
#3 / Feb 01, 2011 10:49am
Thanks for the assist, Kevin.
Marcuse, does that information help? You can find out more information on using start_on and stop_before in the docs EEDocs:// Paramters: start_on
#4 / Feb 01, 2011 12:45pm
Yes, not very dynamic but it works (hope to find a work around) Thanks
#5 / Feb 02, 2011 6:32am
Ok. Closing for now. Feel free to start a new thread if you have any more questions