rsanchez / dynamo

Makes Dynamic Parameters behave more like the Search module.
http://devot-ee.com/add-ons/dynamo/
10 stars 2 forks source link

Dynamo search:your_custom_field #4

Closed philecker closed 12 years ago

philecker commented 12 years ago

Rob,

This is a must need add-on for #eecms, hoping you can help me figure out why I can't get search:your_custom_field working. Ideally I want this to be a dynamic parameter that is set from a drop down menu for selecting a department (where only 1 department will display). I'm using this in conjunction with VMG Chosen Member to relate member profiles with a EE channel entry for the ability to sort/filter and search an "employee directory". I've tried setting search:your_custom_field in my Dynamo entries tag just for testing purposes. I don't' get any errors, but the results are not updated. Any help is appreciated.

{exp:dynamo:form return="employee-information/directory" search_id="{segment_3}"}
    <select name="orderby">
        <option value="date">Sort By:</option>
        <option value="date">Date</option>
        <option value="title">Name</option> 
        <option value="member_department">Department</option>
    </select>
    <select name="sort">
        <option value="asc">Order In:</option>
        <option value="asc">Ascending</option>
        <option value="desc">Descending</option>
    </select>
    <select name="limit">
        <option value="10"{if limit == 10} selected="selected"{/if}>10</option>
        <option value="20"{if limit == 20} selected="selected"{/if}>20</option>
        <option value="50"{if limit == 50} selected="selected"{/if}>50</option>
    </select>
    <select name="search:member_department">
        <option value="Information Technology\W">Information Technology</option>
        <option value="Marketing\W">Marketing</option>
    </select>
    <select name="search:member_branch">
        <option value="10"{if limit == 10} selected="selected"{/if}>10</option>
        <option value="20"{if limit == 20} selected="selected"{/if}>20</option>
        <option value="50"{if limit == 50} selected="selected"{/if}>50</option>
    </select>
    <input type="submit" value="Go!" />
{/exp:dynamo:form}
{exp:dynamo:entries channel="employee_directory" search:title="Phil" paginate="bottom" search_id="{segment_3}"}
     {employee_name}
        <div class="employee-profile">
         <div class="top-row"> 
          <div class="employee-bubble">
             <div class="trigger"><em><a href="/employee/{cm_username}">{cm_member_firstname} {cm_member_lastname}</a></em></div>
              <div class="popup">
            {if cm_photo_filename}
                    <img src="/assets/images/member_photos/{cm_photo_filename}" width="90" height="105" alt="" />
            {if:else}
             <img src="/assets/images/member_photos/no-photo.jpg" width="90" height="105" alt="No Photo" />
            {/if}
              </div>
          </div>, <strong>{cm_occupation}</strong> - {cm_member_department}</div>
           <div class="bottom-row"><span class="emp-phone"><img src="/assets/images/global/phone.png" alt="" /> {cm_member_phonenumber}</span> <span class="emp-location"><img src="/assets/images/global/location.png" alt="" /> {cm_member_branch}</span> <span class="emp-email"><img src="/assets/images/global/email.png" alt="" /> <a href="mailto:{cm_email}">{cm_email}</a></span></div>
        </div>
    {/employee_name}
    {paginate}
        <div id="pagination">Page {current_page} of {total_pages} ({pagination_links})</div>
    {/paginate}
{/exp:dynamo:entries}
philecker commented 12 years ago

I appologize, I found out was causing my issue.