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.

"current_time" plus a month?

October 30, 2009 4:59pm

Subscribe [2]
  • #1 / Oct 30, 2009 4:59pm

    Eric Nance

    25 posts

    Anyone know if there’s a simple way to show next month’s name by using the current_time variable? Here’s what I’m trying to do:

    I have a page of events: http://agedefy.server288.com/press-and-media/event-calendar/

    The left side shows the current month, followed by the next two months. Getting the current month is easy enough, I’m simply using this:

    {current_time format="%F"}

    But, is there a way to use this same variable and show next month, and the month after that? That way, when we get to November 1, “October” becomes “November”, “November” becomes “December” and “December” becomes “January”.

    I have the events on the right displaying correctly. I just need to get the months to automatically update.

    Thanks in advance!

  • #2 / Oct 30, 2009 5:07pm

    Eric Nance

    25 posts

    Ah, I just found another issue. I’ll need similar functionality to display the events associated with the month. I suppose I might need to use the calendar tag for this…

  • #3 / Nov 01, 2009 3:26pm

    Ingmar

    29245 posts

    I am afraid you’ll need a bit of PHP for that…

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

ExpressionEngine News!

#eecms, #events, #releases