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.

Entries by custom date field

October 04, 2012 12:44pm

Subscribe [2]
  • #1 / Oct 04, 2012 12:44pm

    DigitalDesigns

    94 posts

    We need to display one entry within a channel based on a custom EE date field.

    We have one template where we want to display the entry for “today” and another template where we want to display the entry for “tomorrow”

    The channel contains a month worth of entries, each entry corresponds to a day of the month. The two templates we use - template A displays TODAY’s entry - Template B displays TOMORROWS’s entry. At midnight tomorrow becomes today…then next day becomes tomorrow (allowing visitors to see only today’s and tomorrow’s entries when they switch templates.)

    Can we do this by using a custom date field? IF so, how do you limit entries according to the date for each of the two templates? Do we need a custom add-on for this? PHP?

    PS - we achieved this with Solspace calendar - BUT - we need to import all entries at once including the custom date field Calendar didn’t work for us. (You cannot CSV import into Solspace Calendar…)

    Thanks

  • #2 / Oct 04, 2012 7:52pm

    John St-Amand

    865 posts

    Solspace fortunately has another great add-on called Date Field Filter which allows you to essentially remap the date sorting to a custom date field and specify ranges for start and end.  Would likely get you most of the way there - included in their example is a little bit of in-template PHP to do a date comparison to do something like the math on current time plus 24 hours.

  • #3 / Oct 05, 2012 5:38pm

    GCT Software

    2 posts

    We have been testing using Date Field Filter but have run into problems utilizing it with Playa

    See our discussion and the problem here:  http://www.solspace.com/forums/viewthread/13903/

    If anyone has some suggestions (or an example of what PHP or Stash code we should use, please post it!

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

ExpressionEngine News!

#eecms, #events, #releases