EE 1
EE 2
Dynamo
Developer
3rd Party (Free)
Download v1.0.2
Compatibility
- LG Addon Updater
- Multi Site Manager
- Stand Alone Entry Form
Requirements
- jQuery for the Control Panel
Tags
Makes Dynamic Parameters play nice with Pagination.
http://expressionengine.com/user_guide/modules/channel/dynamic_parameters.html
Until now, it was impossible to have your dynamic parameters persist when using pagination. To alleviate this, Dynamo takes your dynamic parameters and stores them in the database, and assigns a search_id, which can be used in to retrieve your filtered results, without having to perform another POST request with your parameters.
For more on filtering content with dynamic parameters, see this great tutorial: http://eeinsider.com/articles/filtering-content-with-dynamic-parameters/
Download
Installation
- Copy the /system/expressionengine/third_party/dynamo/ folder to your /system/expressionengine/third_party/ folder
Form
Use this form to submit your dynamic parameters. It will add your search parameters to the database, and redirect you to your results template with the search_id. As of version 1.0.1, you can also submit arrays (like category[], for instance) which will automatically be converted into the pipe delimited format that entries parameters accept.
{exp:dynamo:form return="site/entries"}
<input type="text" name="search:your_custom_field">
<select name="limit">
<option value="10">10</option>
<option value="20">20</option>
<option value="50">50</option>
</select>
<select name="category[]" multiple="multiple">
<option value="1">Dogs</option>
<option value="2">Cat</option>
</select>
<input type="submit">
{/exp:dynamo:form}
Form Parameters
return
This is the location of your dynamo:entries template. The search_id will be added as the last segment.
return="site/entries"
search_id
If you are displaying a form on your results page, and wish to show the submitted values.
{exp:dynamo:form return="site/entries" search_id="{segment_3}"}
<input type="text" name="search:your_custom_field" value="{search:your_custom_field}">
<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>
<input type="submit">
{/exp:dynamo:form}
Entries
Use this tag in your results template to display the matching channel entries. It uses the same variables and parameters as a channel:entries tag, with the addition of the search_id parameter to fetch your matching results.
{exp:dynamo:entries channel="entries" dynamic_parameters="search:your_custom_field|limit" search_id="{segment_3}"}
<a href="{entry_id_path=site/entry}">{title}</a>
{paginate}<p>Page {current_page} of {total_pages} pages {pagination_links}</p>{/paginate}
{/exp:dynamo:entries}
Form on Results Page
{exp:dynamo:form return="site/entries" search_id="{segment_3}"}
<input type="text" name="search:your_custom_field" value="{search:your_custom_field}">
<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>
<input type="submit">
{/exp:dynamo:form}
{exp:dynamo:entries channel="entries" dynamic_parameters="search:your_custom_field|limit" search_id="{segment_3}"}
<a href="{entry_id_path=site/entry}">{title}</a>
{/exp:dynamo:entries}
Download Dynamo
| EE Version | Downloads | Add-On Version | Release Date |
|---|---|---|---|
| 2.+ | Download | 1.0.2 | 2010-12-19 01:00 AM |
Dynamo Links
This entry was last updated April 20, 2012, 3:58 am.
Disclaimer: Information about ExpressionEngine add-ons is provided as a service to you, the user, and every member of the ExpressionEngine community. Devot:ee is not responsible if you hose, mangle, wreck, or otherwise destroy your EE website by installing an add-on that you found out about at this site, regardless of its rating, Favorites status, commercial or free status, or general popularity. Caveat EEmptor!
3 Reviews:
spotd 05.02.12
Agreed, EE should bring this onboard for the next big release. Brilliant addon for giving your clients better search features without losing pagination!
Portnull 09.30.11
aaaand one of those “should-be-default” addons again. good one.
Exp:resso 08.10.11
Dude. You’re a lifesaver. Dynamic parameters are pointless without this