We use cookies to improve your experience. No personal information is gathered and we don't serve ads. Cookies Policy.

ExpressionEngine Logo ExpressionEngine
Features Pricing Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University
Log In or Sign Up
Log In Sign Up
ExpressionEngine Logo
Features Pro new Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University Blog
  • Home
  • Forums

Archive Month Links Tag when event spans two months

How Do I?

deswork's avatar
deswork
93 posts
8 years ago
deswork's avatar deswork

Hi,

I’m using the Archive Month Links Tag as navigation to show events from certain months.

This works great except when an event spans two months e.g Santa’s Grotto starting in November (Entry added in November) running into December.

The Archive Month Links Tag only shows November. Without adding a second Santa’s Grotto event with a publish date in December, is there an way to show both November and December in the archive list.

Thanks

Wayne.

       
Derek Jones's avatar
Derek Jones
7,561 posts
8 years ago
Derek Jones's avatar Derek Jones

Not with that tag, no, the intent is a bit different than what you’re after. That list is only concerned with the entry date, not the expiration or meta data, as it represents fixed points in time rather than date ranges.

       
deswork's avatar
deswork
93 posts
8 years ago
deswork's avatar deswork

Thanks Derek,

Any suggestions on how I could achieve what I’m after doing?

Cheers

Wayne.

       
Derek Jones's avatar
Derek Jones
7,561 posts
8 years ago
Derek Jones's avatar Derek Jones

What’s the primary goal you’re trying to accomplish (talking content here, not implementation) and your desired output? Please provide a sample if you can.

       
deswork's avatar
deswork
93 posts
8 years ago
deswork's avatar deswork

I’d like to display a month archive list for entries where events span across two or more months e.g. Santa’s Grotto starting in November (Entry added in November) running into December.

I’d like the archive list to show:

November December

When a visitors clicks a month I like to show the events that are happening in that month.

Regards

Wayne.

       
Derek Jones's avatar
Derek Jones
7,561 posts
8 years ago
Derek Jones's avatar Derek Jones

Thanks Wayne, and one more question, what fields are you using to indicate the start and the end of an event?

       
deswork's avatar
deswork
93 posts
8 years ago
deswork's avatar deswork

At the minute it just a text field that holds the event date.

This is an example of how an event date is currently listed: Saturday 26th November, 3rd, 10th, 17th December

       
Derek Jones's avatar
Derek Jones
7,561 posts
8 years ago
Derek Jones's avatar Derek Jones

Hm, ok. ExpressionEngine isn’t going to be able to programmatically split up the display of your events if you’re just using text fields. Is there a reason you aren’t using date fields, for example entry date and expiration date?

Edit: nevermind, I see that you are picking multiple distinct dates for a single entry. You may need to look at implementing an Event add-on. Those dates are human-readable and easy for us to parse, but not so easy for machines. I would look at Low Events and Solspace Calendar.

       
deswork's avatar
deswork
93 posts
8 years ago
deswork's avatar deswork

Thanks for your help Derek, I’ll have a look at those.

Regards

Wayne

       

Reply

Sign In To Reply

ExpressionEngine Home Features Pro Contact Version Support
Learn Docs University Forums
Resources Support Add-Ons Partners Blog
Privacy Terms Trademark Use License

Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.