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

Support archive

Show results from 2 channels

ngoncom 8 Oct 2015 18:19 question, complete

Hi Low,

Before asking, I search and found this topic:
https://getsatisfaction.com/low/topic...

Very pity, it still not resolve my problem.

I have a list of row in table with data grab from 2 channel:

{exp:channel:entries channel="request" ... }
<tr>
<td>{title}</td>
{embed="view/.customer-info" my_id="{entry_id}"}
<td>{status}</td>
</tr>
{/exp:channel:entries}


Template embed ".customer-info" I query into another channel to get customer info:

{exp:channel:entries channel="customer" search:customer_id="={embed:my_id}" ...}
<td>{customer_name}</td>
<td>{customer_address}</td>
{/exp:channel:entries}


All I get a list of rows like this:

- Request 1 | Customer 1 | Address 1 | Status 1
- Request 2 | Customer 2 | Address 2 | Status 2


Both channel (request + customer) searchable, user can search with keyword (Request 1, Customer 1, or Address 1)

If keywords in channel 1 (request), result page display as I want, but it cant be if keywords in channel 2 (customer).

I want if user search keywords in 2 channels, I get results page as listing page.

Thankkkkkkkkkkk...

Replies

  1. Low 8 Oct 2015 20:55

    I'm not sure what you're asking here.

    You can use the Results tag as a replacement for the Channel Entries tag, if you need to.

    I'm not seeing an issue with LS here?

  2. ngoncom 9 Oct 2015 02:34

    Sorry,

    Yes, Low Search results as Channel Entries and Low Search works well, the problem is the way to show results.

    In my case:
    - Request 1 | Customer 1 | Address 1 | Status 1
    - Request 2 | Customer 2 | Address 2 | Status 2


    "Request 1" is the title of channel "request"
    "Customer 1" is customer name of channel "customer"
    "Address 1" is customer address of channel "customer"
    "Status 1" is the status of channel "request"

    So, if I search keyword in customer name, or customer address I cant display results as channel entries does.

    Thank!

  3. Low 9 Oct 2015 07:51

    That probably means you only want to display the Request channel, and display Customer info using the Relationships field, yet you want the Customer data to be searchable.

    However, when a match is found in a Customer entry, you want to return the related Request entry.

    This is not possible with LS out of the box. You'd have to create an extension or custom filter to do this.