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

Support archive

Low events entries linking problem

Noor Mohammad 14 Jan 2016 20:21 question, complete

Am trying to display a list of passed events and link them to an event detail template.

{exp:low_events:entries
channel="events"
limit="15"
show_passed="yes"
unit="custom" date_from="-1 year" date_to="now"
}
<div>
<h2><a href="{url_title_path='events/details'}/{entry_id}">{title}</a></h2>
</div>
{/exp:low_events:entries}


The problem is without an entry_id appended to the anchor tag, it doesn't display the correct entry. The latest one always shows up. Somehow the url title is not enough to display the correct entry.

Should we pass the the entry_id from the list to the detail page?

Replies

  1. Low 15 Jan 2016 09:32

    Is the same tag responsible for displaying the detail view? Because the issue is with that tag.

  2. Noor Mohammad 15 Jan 2016 10:01

    I tried with these tags {url_title_path} and {title_permalink}.

    It works with {entry_id_path} but that would create problems when I use low search to search entries. The {auto_path} doesn't pick up entry_id

  3. Low 15 Jan 2016 10:03

    But, what is the actual problem here? For a given URI, an entry doesn't show up? What is the template code for displaying that entry?

  4. Noor Mohammad 15 Jan 2016 12:56

    The problem is only the latest entry shows up, for any entry from the list page.

    Code for the detail page.

    {exp:low_events:entries
    channel="events"
    limit="1"
    show_upcoming="yes"
    show_active="yes"
    }
    <div class="single-event">

    <div class="col_full nobottommargin">
    <div class="fancy-title">
    <h3><span>{title}</span></h3>
    </div>
    </div>

    </div>

  5. Low 15 Jan 2016 13:02

    If you want to display a single entry (event), you're probably better off using the regular {exp:channel:entries} tag.

    The low_events:entries tag is meant to be used for displaying entries/events in a given date range.

  6. Noor Mohammad 15 Jan 2016 13:52

    Thanks Low.

    Getting used to using Low addons :)

    They encompass almost everything, to make almost anything.