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.

Displaying entries in a channel, but grouped by month stored in a custom date field?

October 08, 2012 10:01am

Subscribe [3]
  • #1 / Oct 08, 2012 10:01am

    hexica

    2 posts

    Hi EE guys and gals,

    I’ve helping a friend get their EE site up and running.

    The website a list of events, which have custom channel fields for the start date of the event.

    I can already sort the entries in the channel by the custom start date - nice - which gives:

    Event 1
    Event 2
    Event 3
    Event 4.

    The goal is to output the list of events so they are wrapped by the month from the custom start date.

    January

    Event 1
    Event 2

    Feb

    Event 3
    Event 4
    Event 5

    Can anyone help point me in the write direction?

    I remember from using EE years ago that there was a script that used to output the entries in yearly/monthly groups for the archives - so it must be possible somehow?

  • #2 / Oct 08, 2012 2:48pm

    Boyink!

    5011 posts

    Basically you need a custom query.  The add-on you remember was doing that in the background.

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

    Shane Eckert

    7174 posts

    Hey there hexica,

    Thanks for posting your question.

    Mike is right - custom query is going to get this done for you.

    I could not find that Add-On, do you recall where you saw it?

    Cheers,

  • #4 / Oct 09, 2012 12:46pm

    hexica

    2 posts

    Cheers guys, sorry the last time I used EE would of been 5 years ago - if not more. Lots changed since then!

    So rather than doing this in EE tags etc I need to create a custom PHP code to find, group and then output the content?

    I think I understand. Cheers

  • #5 / Oct 10, 2012 2:53pm

    Kevin Smith

    4784 posts

    Yep, looks like this situation is going to need a custom add-on. Do you happen to recall the name of the add-on you used at the time?

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

ExpressionEngine News!

#eecms, #events, #releases