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.

Display by week with a custom date field?

June 20, 2011 5:43pm

Subscribe [2]
  • #1 / Jun 20, 2011 5:43pm

    tunnel7

    125 posts

    Hello.  I’m working on adding events this week functionality to a client’s website but have hit a snag.  The problem is that we are using a custom date field (event-date) and the display by week code is acting on the default date from the entry.  Here is the channel tag:

    {exp:channel:entries channel="events" dynamic="no" orderby="event-date" sort="desc" status="not closed" display_by="week" limit="1" show_future_entries="yes" show_current_week="yes"}

    My question is, how can I make the display by code for the week use the event-date field instead of the default date field?

    Thanks in advance.

  • #2 / Jun 21, 2011 7:24am

    John Henry Donovan

    12339 posts

    tunnel7,

    My question is, how can I make the display by code for the week use the event-date field instead of the default date field?

    You could try this add-on from Solspace called Date Field Filter

    Would that do what you wish?

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

ExpressionEngine News!

#eecms, #events, #releases