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

Support archive

Low Events Entries Tag in Global Embed Only Produces Results on Some Pages

Stoyan Vasilev 8 Nov 2013 04:27 problem, complete

Hi,

We are experiencing a strange bug where the following two template snippets which are part of our .global_head embed only work in one section of the site (and produce no result anywhere else on the site):

 
{exp:low_events:entries
channel="fairs"
show_passed="no"
events_field="cf_fairs_dates"}
...
{/exp:low_events:entries}

{exp:low_events:entries
channel="fairs"
show_active="no"
show_upcoming="yes"
show_future_entries="yes"}
...
{/exp:low_events:entries}


We also have the following two snippets in the same embed and they work just fine:
 
{exp:low_events:entries
channel="exhibitions"
show_passed="no"
events_field="cf_exhibitions_dates"}
...
{/exp:low_events:entries}

{exp:low_events:entries
channel="exhibitions"
show_active="no"
show_upcoming="yes"
show_future_entries="yes"
events_field="cf_exhibitions_dates"}
...
{/exp:low_events:entries}


This is the same site where we commented out lines 206 and 30x as you suggested.

Do you know what could be causing this behavior or what we can do to test it?

Thanks,
St

Replies

  1. Low 8 Nov 2013 08:51

    If your channels have more than one LE field, always use the events_field="" parameter. Does that help?

    In any case, there is caching going on in LE for optimization. That might go a bit wonky if you're using more than 1 field in a single entry, so I'll probably need to address that...

  2. Low 8 Nov 2013 09:12

    Also, can you explain to me what those tags should produce? That will help me understand better what you're trying to accomplish.

  3. Stoyan Vasilev 8 Nov 2013 18:24

    Hi,

    I added the field attribute and the problem is still there.

    Here is what we are trying to do:

    This site has two channels/site sections, Exhibitions and Fairs, which have Low Events fields. Each one of these channels/sections has multiple LE fields (one for duration of the exhibition, one for opening reception, and a third one for special events).

    In our header navigation we have dropdowns which look like this:

    Exhibitions:
    - Current
    - Upcoming
    - Past

    Fairs:
    - Current
    - Upcoming
    - Past

    The client/gallery however does not have upcoming or current exhibitions and fairs all the time. So there is a need to only show the "Current" and "Upcoming" options in the navigation (and throughout the rest of the site) when there *are* current or upcoming exhibitions/events.

    We are using the snippets above to detect whether there are upcoming or current exhibitions/fairs in order to show them conditionally in the global nav.

    This works perfectly well with the Exhibitions channel. The tags show the desired output and we are able to show the nav items conditionally throughout the site.

    For Fairs however this works in the Fairs section (see Fairs dropdown on this page http://rb.j28.us/fairs/current) but it does not work in any of the other sections (see Fairs dropdown again on this page http://rb.j28.us/about-gallery The global nav is in its own embed (which we think means that it should parse the same way regardless of which page we are on).

    Let us know if you need to know anything else. Thanks!

  4. Low 8 Nov 2013 21:05

    It seems like it is indeed an issue of having multiple LE fields in a single channel, as well as having multiple instances of the Entries tag on a page, which is a bit of an edge case. I've started work on a fix for this issue, but that does require some time. Hoping I can get a working update for you early coming week.

  5. Stoyan Vasilev 12 Nov 2013 19:46

    Sounds good. Please keep us posted. We are hoping to launch very soon (later this week or next week). We can hardcode this for the launch but we also want to be done with the project. :)

  6. Low 14 Nov 2013 09:49

    Can you send me an email to hi at gotolow dot com? I've got an improved version that should take care of this issue.

  7. Stoyan Vasilev 14 Nov 2013 17:23

    just did.