ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

refine results

July 06, 2010 1:21pm

Subscribe [2]
  • #1 / Jul 06, 2010 1:21pm

    Eastwood Design

    605 posts

    I have a list of entries and I want to refine the results based on a custom field and a category.

    The custom field is rates_track

    The category is working fine.  but I want to combine my refinements so the user can choose a rates_track AND the category.

    So say for example a user selects Track 2 and Category 28, it will refine the results to ONLY display results where the custom field “rates_track” is “Track 2” and the category is “28”


    here is what I have so far: (the Choose track is not working, results are coming up blank)

    <form method="post" action="{path="site/rates"}">
    
                <select name="rates_track">
         <option value="#">Choose Track</option>
                    <option value="Track 1">Track 1</option>
                    <option value="Track 2">Track 2</option>
                    <option value="Track 3">Track 3</option>
                    <option value="Track 4">Track 5</option>
                    <option value="Track 5">Track 5</option>
                  </select>
                
    <select name="category">
    <option value="#">Choose Type</option>
    <option value="28|29" >All Types</option>
    {exp:weblog:categories weblog="rates" style="nested"  show_empty="no"}
    <option value='{category_id}'>{category_name}</option>
    {/exp:weblog:categories}     
    
                  </select>
                  <input type="submit" value="Go!" />
                
            
            </form>
  • #2 / Jul 06, 2010 6:50pm

    Brandon Jones

    5500 posts

    On the site/rates template, do you have ‘rates_track’ listed in the dynamic_parameters parameter for the weblog entries tag?

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases