ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

Orderby question

January 31, 2011 4:04pm

Subscribe [4]
  • #1 / Jan 31, 2011 4:04pm

    Marcuse

    166 posts

    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

    Kevin Cupp

    791 posts

    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

    Sue Crocker

    26054 posts

    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

    Marcuse

    166 posts

    Yes, not very dynamic but it works (hope to find a work around) Thanks

  • #5 / Feb 02, 2011 6:32am

    John Henry Donovan

    12339 posts

    Ok. Closing for now. Feel free to start a new thread if you have any more questions

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases