I have a content type 'Event', which can accept repeating values for the date. I also have an 'Upcoming Events' view, which displays an unformatted list of event node teasers. If I enter a repeating date, and set the number of values to show in the teaser to '1', it shows the first repeat in the sequence against each repeating entry, not the date for the current one in the list.

I'm not sure if I've missed something in the interface, or whether this is a bug.

Something similar was reported in this issue: http://drupal.org/node/1045866, but the fix in the comments was for a view with fields, not an unformatted teaser list.

Comments

karens’s picture

Status: Active » Closed (duplicate)

There is a feature request to provide more control over which repeating date is displayed.

highfellow’s picture

Could you say which issue you are referring to? I've looked at http://drupal.org/node/1491172 and http://drupal.org/node/1401688 , but they aren't quite what I'm looking for.

#1491172, which is a feature request, is about showing only the next upcoming event, but I want to have an upcoming events view where all upcoming repeats are shown in the view with the correct date for their position in the list. This is using node teasers, rather than fields.

#1401688 is a support request, but the advice given there doesn't work for me. Also the issue title refers to the node view, not the teaser view in a list. I've tried setting 'add multiple value identifier' to 'yes' in the filter which selects events with dates in the future, and this doesn't work. Contextual filters don't seem appropriate when I'm showing all upcoming events, not ones for a specific date range.

I think my options at the moment are:
- switch to using a fielded display (which does work OK), and find some way to style it to look how I want.
- have a go at writing some code which will fix the problem.

Using fields is a lot easier, so I might do that, but it would be good to have some idea from you how hard it would be to fix the issue in code? I have some coding experience, but not much in drupal or php. Also if you could give me some idea how to approach this problem? I'm wondering if the reason it works with fields but not with nodes is because fielded displays are generated internally by views, whereas node teaser views come from another module?

highfellow’s picture

I decided in the end to make a fielded view, but override the view theme template to make a formatted display that I'm happy with. This seems to be working OK for me.