All Low add-ons are now owned by EEHarbor. Read the blog post.

Support archive

Trying to figure out if Low Events can do what I need

nicole1guzman 10 Sep 2012 16:10 question, complete

Hi I just purchased Low Events, but I'm not sure that it can do what I need.

Basically I need to output each month of the year, and have a list of events happening that month underneath it. I created a repeating event, but it just outputs the start date.

Is this possible?

Something like the screenshot below.

Thanks!

Replies

  1. Low 10 Sep 2012 16:17

    Technically, that's not a repeating event, but a single event that spans multiple days (maybe even months). The low_events:entries tag will only output an event once.

    By the look of your output, I take it a click on October will show/hide events in that month with JavaScript? Well, instead of that, I'd take a different approach:

    List out the months using the low_events:archive tag, then link to each month with that tag, so you get URIs like /events/2012-09 and /events/2012-10

    Then use the low_events:entries tag with unit="month" to show all events in that month only. That will allow you to show all *active* events as well, so events that start in September + end in October will also be shown in the October page.

    Make sense?

  2. nicole1guzman 10 Sep 2012 18:57

    So could I achieve that all in one page with an ajax request then? So clicking october for example would show all events from 2012-10 via ajax?

  3. Low 10 Sep 2012 19:38

    Yeah, Ajax would work.

  4. nicole1guzman 13 Sep 2012 20:18

    One more hopefully tiny question, I've got this set up, which works for what I needed above, but it doesn't seem to want to show upcoming and active months/events only, and is showing passed events too.

    {exp:low_events:archive channel="events" show_passed="no" unit="month"}
    <div class="month-container{if month == "{current_time format='%F'}"} current{/if}">
    <h2>{month} {year}</h2>
    {embed='events/view'}
    </div>
    {/exp:low_events:archive}


    and in the embed

    {exp:low_events:entries channel="events" unit="month" show_passed="no" date="2012"}

    <p> {title}</p>
    {/exp:low_events:entries}


    Any ideas?

  5. Low 14 Sep 2012 07:01

    What if you call the embed like this:

    {embed="events/view" date="{date_url}"}


    And then use this in the embed:

    {exp:low_events:entries channel="events" unit="month" show_passed="no" date="{embed:date}"}

  6. nicole1guzman 14 Sep 2012 15:16

    Hmm, no luck. Is it becuase that event spans the full year? is it not treating it as a "passed event" for that month, since its technically all one event?

  7. Low 15 Sep 2012 11:12

    Just for the record, what's the LE version you're on now?

    Also, can you turn on template debugging and copy/paste the lines starting with Low Events here?

  8. nicole1guzman 17 Sep 2012 15:54

    I'm on 1.0.4 Here is the output

    (0.006823 / 7.50MB) Tag: {exp:low_events:archive channel="events" show_passed="no" unit="month" limit="3"}
    (0.006863 / 7.50MB) Closing Tag Found
    (0.006891 / 7.50MB) Processing Tags
    (0.006910 / 7.50MB) Module Tag: Channel/entries
    (0.006921 / 7.50MB) Module Tag: Channel/category_archive
    (0.006934 / 7.50MB) Module Tag: Low_events/archive

    (0.062640 / 15.76MB) Calling Class/Method: Low_events/archive
    (0.062753 / 15.76MB) -> Class Called: Low_events
    (0.064355 / 16.04MB) -> Method Called: archive
    (0.066461 / 16.04MB) -> Data Returned

    (0.555512 / 17.04MB) Tag: {exp:low_events:entries channel="events" unit="month" show_passed="yes" date="2012-08"}
    (0.555566 / 17.04MB) Closing Tag Found
    (0.555597 / 17.04MB) Processing Tags
    (0.555627 / 17.04MB) Module Tag: Low_events/entries
    (0.555637 / 17.04MB) Including Files for Plugins and Modules
    (0.555647 / 17.04MB) Files for Plugins and Modules All Included
    (0.555654 / 17.04MB) Beginning Final Tag Data Processing
    (0.555664 / 17.04MB) Calling Class/Method: Low_events/entries
    (0.555798 / 17.04MB) -> Class Called: Low_events
    (0.555961 / 17.05MB) -> Method Called: entries
    (0.556046 / 17.05MB) Low Events: Working date set to 2012-08-01 08:48
    (0.556067 / 17.05MB) Low Events: Unit: month
    (0.556535 / 17.05MB) Low Events: Setting fixed_order="4"
    (0.556560 / 17.05MB) Low Events: Calling the channel module

    (0.563639 / 17.08MB) Tag: {exp:low_events:entries channel="events" unit="month" show_passed="yes" date="2012-09"}
    (0.563687 / 17.08MB) Closing Tag Found
    (0.563716 / 17.08MB) Processing Tags
    (0.563743 / 17.08MB) Module Tag: Low_events/entries
    (0.563753 / 17.08MB) Including Files for Plugins and Modules
    (0.563762 / 17.08MB) Files for Plugins and Modules All Included
    (0.563769 / 17.08MB) Beginning Final Tag Data Processing
    (0.563778 / 17.08MB) Calling Class/Method: Low_events/entries
    (0.563899 / 17.08MB) -> Class Called: Low_events
    (0.564039 / 17.09MB) -> Method Called: entries
    (0.564106 / 17.09MB) Low Events: Working date set to 2012-09-01 08:48
    (0.564126 / 17.09MB) Low Events: Unit: month
    (0.564557 / 17.09MB) Low Events: Setting fixed_order="4|2|3"
    (0.564582 / 17.10MB) Low Events: Calling the channel module

    (0.575249 / 17.13MB) Tag: {exp:low_events:entries channel="events" unit="month" show_passed="yes" date="2012-10"}
    (0.575298 / 17.13MB) Closing Tag Found
    (0.575328 / 17.13MB) Processing Tags
    (0.575355 / 17.13MB) Module Tag: Low_events/entries
    (0.575364 / 17.13MB) Including Files for Plugins and Modules
    (0.575373 / 17.13MB) Files for Plugins and Modules All Included
    (0.575380 / 17.13MB) Beginning Final Tag Data Processing
    (0.575390 / 17.13MB) Calling Class/Method: Low_events/entries
    (0.575511 / 17.13MB) -> Class Called: Low_events
    (0.575651 / 17.13MB) -> Method Called: entries
    (0.575717 / 17.14MB) Low Events: Working date set to 2012-10-01 08:48
    (0.575737 / 17.14MB) Low Events: Unit: month
    (0.576165 / 17.14MB) Low Events: Setting fixed_order="4"
    (0.576190 / 17.14MB) Low Events: Calling the channel module

  9. Low 17 Sep 2012 16:13

    So, Low Events is getting 1 entry in 2012-08 (#4), 3 in 2012-09 (#4, #2, #3) and 1 in 2012-10 (#4). So, event with entry_id #4 spans 3 months.

    Are you not seeing these entries per each month?

  10. nicole1guzman 17 Sep 2012 17:04

    ah yes, I changed the dates of the events manually, so that they would be the only thing shown. but if I had left it from January on through December in the entry, it would show passed events, even if I said not to.

    basically, we need it to show one past month, current month, and one future.

  11. nicole1guzman 17 Sep 2012 17:04

    ah yes, I changed the dates of the events manually, so that they would be the only thing shown. but if I had left it from January on through December in the entry, it would show passed events, even if I said not to.

    basically, we need it to show one past month, current month, and one future.

  12. Low 18 Sep 2012 06:43

    Isn't that what you're getting now?

  13. nicole1guzman 18 Sep 2012 06:53

    Yes, but that's only becuae those are the dates I set for the event. I'd like it to output that, even if the event spans further into the future and past, does that make sense?

    Is that possible?

  14. Low 18 Sep 2012 07:03

    Well, the Calendar tag will give you previous, this (current), and next month as vars, so you might try this:

    {exp:low_events:calendar channel="events"} 
    <div class="month-container">
    <h2>{prev_month format="%F %Y"}</h2>
    {embed="events/view" date="{prev_month_url}"}
    </div>
    <div class="month-container current">
    <h2>{this_month format="%F %Y"}</h2>
    {embed="events/view" date="{this_month_url}"}
    </div>
    <div class="month-container">
    <h2>{next_month format="%F %Y"}</h2>
    {embed="events/view" date="{next_month_url}"}
    </div>
    {/exp:low_events:calendar}

  15. nicole1guzman 18 Sep 2012 07:06

    Ok, thanks, I'll give that a try. Thanks so much for all your help!