0

I have a page where I am listing out all entries to all channels. I want to have a filter for filtering by channel. Anyone know how to do this with pro search (EE7)?

2 Answers 2

0

Not sure how to do this with pro search, but you can try setting up a filter using dynamic parameters.

  1. Create a form where a user can select a channel or channels, send his selection to your template
  2. Catch POST data using dynamic_parameters="channel" parameter.
0

To do this with Pro Search you can try out the following:

I have a template with

{exp:pro_search:form result_page="test/return_pro_result"}

<select name="channel" id="channel">
    {collections}
  <option value={collection_name}>{collection_name}</option>
  {/collections}
</select>
<input type="submit">   

{/exp:pro_search:form}

and then my return_pro_result template looks like

{exp:pro_search:results query="{segment_3}" limit="10"}
    {if count ==  1}<ol>{/if}
      <li><a href="{comment_url_title_auto_path}">{title}</a></li>
    {if count == total_results}</ol>{/if}
    {if no_results}No search results{/if}
{/exp:pro_search:results}
1
  • I'm not sure this will work for what I want will it? I want to list out all channels and filter entries by that. Jan 3 at 17:46

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.