This patch hides past dates in the node when there are multiple or repeated times. Please test extensively, because I'm not positive that this doesn't adversely affect something else way down the line.

Comments

jscheel’s picture

Status: Needs review » Needs work

Hrm, found a bug in this. Will roll a new patch shortly.

karens’s picture

What we really need are several new options for multiple dates, and this could be one of them. Like display only a specific date (I'm working on a way to do that now) or display none of the dates on the front of the node and move the whole, possibly long, list to a separate tab.

joachim’s picture

Subscribing.

jscheel’s picture

The timezone handling is still confusing me quite a bit. I need to read up on this cause at this point, I only have it working for UTC :P

I do like the idea of giving the date repeating some love. The more options the better in this case!

karens’s picture

Version: 5.x-2.0-rc » 6.x-2.x-dev

No new features in D5, moving feature requests to D6.

karens’s picture

This obviously no longer applies, but I can think of a different approach that might be easier. In the Calendar we give each date field a css tag of 'past', 'future' or 'today', so why don't we just provide a class to the multiple date fields and you can do whatever you want by using css to show, or hide, or emphasize them in any way you want. No hacking of code and very simple.

How does that sound?

karens’s picture

Status: Needs work » Fixed

I just committed a new feature to -dev that should take care of this and more. The formatters now have settings so you can do choose to show or not show the repeat rule, display all repeats or the first repeat or the next repeat from today or whatever. You can also choose if you want to display both the from and to dates, or just the 'From' date or just the 'To' date.

If you use Advanced Help you'll see some popup help for this. The formatter settings are on the Display fields page and when you add Date fields to views.

I'm sure it will still need some tweaking to produce the right results everywhere, but so far in my testing it works to make this all very customizable.

If there are no immediate bugs, I'm planning to roll a new release with this in it.

jscheel’s picture

Hey Karen, I missed your message from last month. This looks great! Thanks for taking care of this!

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

TimelessDomain’s picture

" The formatters now have settings so you can do choose to show or not show the repeat rule, display all repeats or the first repeat or the next repeat from today or whatever."

i don't see these options in d7 (nor remember them from d6). Did this feature ever get committed? There is only the 2 labeled "already done".

Perhaps there could be more repeat rule formatters.
Under "Repeat rule:" (in views OR CCK display) there could be
- hide repeat rules (already done)
- show repeat rules (already done)
- hide past events while showing repeat rules
- hide future events while showing repeat rules
- show the first repeat
- show the next repeat

shark’s picture

StatusFileSize
new21.6 KB

I wasn't immediately sure how to hide previous dates. The trick is to enter 'now' in the 'starting from' text field when you are editing your CCK-enabled node's date field settings (e.g. go to 'Admin -> Content Management -> Content Types -> Edit Event -> Display Fields').

I've attached an image of what you'll see on the form and what to enter in order to only display repeating dates starting on or after today.

Enter 'now' in 'starting from' field.