Do I have to have a Collection set up for entries to be returned?
Hi,
I'm using Low Search (v.4.4.4) on an EE 2.10.1 site to generate lists of entries (I'm using it because I need to filter the list based on relationship fields). I don't have the channel set up as a collection, but the low search results tag was returning the results I'd expect, up until I started creating entries with a channel form from the front end. Now, it returns everything except the entries that were submitted via the channel form. I've checked and the status on the entries is open, so I can't really see why they aren't coming in. According to the control panel their relationship fields are set with values that should make them be returned in the results. Do I need to have the channel in a collection in order for it to return those entries, or is there some other issue going on?
Here's my code:
{exp:low_search:results channel="announcements" dynamic="no" default:limit="10" default:orderby="entry_date" default:sort="desc" paginate="bottom" default:child:announcement_related_customers="{custCompany}"}
{if low_search_no_results}<p>You have no announcements at this time.</p>{/if}
<div class="announcement{exp:channel_images:images entry_id='{entry_id}' limit='1' category='thumbnail'}-image{/exp:channel_images:images}-row">
<div class="row">
{exp:channel_images:images entry_id='{entry_id}' limit="1" category='thumbnail'}
<div class="image-wrapper">
<img class="announcement-image" src="{image:url:thumbnail}" alt="{image:title}">
</div>
{/exp:channel_images:images}
<div class="announcement-content-wrapper">
<h3>{title}</h3>
{announcement_blurb}
<div class="date-posted">Date Posted: {entry_date format="%n-%j-%y"}</div>
<a href="{path='login/announcements/{url_title}'}" class="btn btn-default">VIEW</a>
</div>
</div>
</div>
{paginate}
{pagination_links}
{pagination-code}
{/pagination_links}
{/paginate}
{/exp:low_search:results}
The custCompany variable I'm passing is a stash variable, but I get the same results if I hard code the id number in there as well.
Thanks,
Brian
Replies
Brian Rivet 15 Nov 2016 00:46
Nevermind. I sorted out the problem!