Hello, I want to display a list of upcoming activities but i'm having trouble getting the date of the item in my template.

Situation:

  • I have a nodetype named "Activity". These nodes can be repeated.
  • I have a teaser view that displays these nodes.
  • I have a template "node-activity.tpl.php" where I customize the display of activities in my teaser view.

Problem:
Now my list looks like this:

Activity 1
=======
14 Dec 2008 15:45
Repeats every week until Din Jan 27 2009
21 Dec 2008 15:45
Repeats every week until Din Jan 27 2009
28 Dec 2008 15:45
Repeats every week until Din Jan 27 2009 

Activity 1
=======
14 Dec 2008 15:45
Repeats every week until Din Jan 27 2009
21 Dec 2008 15:45
Repeats every week until Din Jan 27 2009
28 Dec 2008 15:45
Repeats every week until Din Jan 27 2009 

Activity 1
=======
14 Dec 2008 15:45
Repeats every week until Din Jan 27 2009
21 Dec 2008 15:45
Repeats every week until Din Jan 27 2009
28 Dec 2008 15:45
Repeats every week until Din Jan 27 2009 

But I would like to show only the date of the item being displayed and not the dates for ALL the items in the repetition.
So my question is: how can I determine which item of the repetition is being displayed?

My goal is to get a list like this:

Activity 1
=======
14 Dec 2008 15:45
Repeats every week until Din Jan 27 2009

Activity 1
=======
21 Dec 2008 15:45
Repeats every week until Din Jan 27 2009

Activity 1
=======
28 Dec 2008 15:45
Repeats every week until Din Jan 27 2009 

Thanks, Remy

Comments

arlinsandbulte’s picture

Status: Active » Closed (won't fix)

I think this is possible now, at least in 6.x.
5.x is quickly becoming obsolete & unsupported anyway.

I will mark as won't fix.
Feel free to re-open if you wish.