Log in | Register | Lost password

Bottom
How can I stop duplicate entries in upcoming block list for multiple day events
  • Posted: 13.11.2007, 17:42
     
    Converted
    rank:
    12
    registered:
     March 2009
    Status:
    offline
    last visit:
    Posts:
    0
    Is there a way to prevent events that span over multiple days from duplicating in my upcoming events block?

    Say I have an event than runs from the 1st through the 5th and then other single day events through the same days.

    EX:
    Event 1 starts day 1 & ends day 5
    Event 2 starts day 2 & ends day 2
    Event 3 starts day 3 & ends day 3
    Event 4 starts day 4 & ends day 4
    Event 5 starts day 5 & ends day 5

    Currently my upcoming events will display next 5 events and I get:
    Event 1
    Event 1
    Event 1
    Event 1
    Event 1

    What I'd like to have is:
    Event 1 (until it end date is reached)
    Event 2
    Event 3
    Event 4
    Event 5

    Thanks in advance,
    shane
  • Posted: 14.11.2007, 05:41
     
    Converted
    rank:
    12
    registered:
     March 2009
    Status:
    offline
    last visit:
    Posts:
    0
    I use an inline list on KamloopsCity.com using the following:

    Code

    <!--[pagesetter_createFilter filter="date:lt:@now,enddate:ge:@now" filter1="date:ge:@now" assign=listFilter]-->

    <!--[pagesetter_inlinePubList tid=39 tpl=smallcolour filter=$listFilter pubcnt=15]-->


    This assumes that the start date for your event is "date" and your end date is "enddate". I'm also specifying the template (smallcolour).

    To use the pagesetter/list block I assume that you could use the filter:

    Code

    date:lt:@now,enddate:ge:@now&date:ge:@now


    In case you care, this means that we only display events that have already started but also end some time in the future, and events that start today or some time in the future.
  • Posted: 15.11.2007, 15:53
     
    Converted
    rank:
    12
    registered:
     March 2009
    Status:
    offline
    last visit:
    Posts:
    0
    I want to show future and current dates, but only list them once. Are you saying if the event starts 2 days from now it will be filtered out?
  • Posted: 16.11.2007, 01:22
     
    Converted
    rank:
    12
    registered:
     March 2009
    Status:
    offline
    last visit:
    Posts:
    0
    no.

    date:lt:@now,enddate:ge:@now

    means that if a multi-day event has already started but not completed, the event will be displayed.

    date:ge:@now

    means that events that start today or some time in the future will be displayed

    there's four working examples on the front page of http://www.kamloopscity.com

Template courtesy of Designs By Darren.