Keyword

Two Items with the same date in Category view

  • Tim Kurth
  • Tim Kurth's Avatar Topic Author
  • Offline
  • New Member
More
13 years 9 months ago #91470 by Tim Kurth
Hi,

I'm currently working on a website of a rock/electro club.

I use the k2 items as events/parties and the "creation date" as the date of the event. works perfectly.

 

Now my issue: the club has two areas, so there can be 2 or 3 events on the same date.

in category view i want to show the date only once.

here's an example to understand what i mean. right now it loos like this:

 

08.01.

party1

 

09.01.

party 2

 

09.01.

party 3

 

10.01.

party 4

......

 

 

and i want it to look like this:

 

08.01.

party1

 

09.01.

party2

party3

 

10.01.

party4

 

 

i'd be glad if anybody can help me with this.

 

Greets, Tim

Please Log in or Create an account to join the conversation.

  • Tim Kurth
  • Tim Kurth's Avatar Topic Author
  • Offline
  • New Member
More
13 years 9 months ago #91471 by Tim Kurth
Replied by Tim Kurth on topic Two Items with the same date in Category view
Hi again,
I worked around a little bit and theoretically I found a solution.

But now, I have to save "this->item->created" at the end of the "category_item.php"
i tried with:

$letztes_datum = $this->item->created

and at the start of the "category_item.php"

if ($this-item-created = $letztes_datum)
...and so on, but it doesn't seem to work, it always acts as if its the same date as the last.

Has anybody a solution for this?

Greets, Tim

Please Log in or Create an account to join the conversation.

  • Tim Kurth
  • Tim Kurth's Avatar Topic Author
  • Offline
  • New Member
More
13 years 9 months ago #91472 by Tim Kurth
Replied by Tim Kurth on topic Two Items with the same date in Category view
Solved.Modified the category.php a bit.

Please Log in or Create an account to join the conversation.


Powered by Kunena Forum