EE 1
EE 2
Spyglass
Developer
3rd Party (Commercial)
Buy Now!
Compatibility
- LG Addon Updater
- Multi Site Manager
- Stand Alone Entry Form
Requirements
- jQuery for the Control Panel
Tags
Spyglass performs a text search on entry titles and custom fields.
Spyglass performs very fast searches on plain text content stored in most types of fieldtypes as well as matrix column data.
Features
- Based on {exp:channel:entries} tag, allowing any of it’s parameters to be used in addition to the keyword search - this allows very powerful search forms to be built
- Provides all of the variables, conditional variables, and variable pairs provided by {exp:channel:entries}
- Fast database based search based on keywords
- No more redirect to a search results page: Spyglass directly runs the search when data is available in GET or POST
- Form tag provides access to GET and POST variables without the need for another extension
- Search queries can be bookmarked
- Automatic and customizable excerpting
- Automatic keyword highlighting in excerpts
Parameters
- Supports all of the {exp:channel:entries} parameters
Additional Parameters
- fields - list of core fields (such as title), custom fields, and matrix columns to search
- keywords - if not specified, all post fields are used to perform the search
- ignore - fields to ignore when creating keywords (such as a “submit” button)
- field_separator - separator for the field list - defaults to a pipe
- keyword_separator - separator for keywords - defaults to a space
- debug - set to “yes” to print debug information
- search_matrix_fields - set to “no” to disable matrix column searches
Variables
- Supports all of the {exp:channel:entries} variables, conditional variables, and variable pairs
Example Template
{exp:spyglass:form}
<h1>Search</h1>
<form method=“get”>
<input type=“text” name=“q” value=”{get_q}” size=“100”/>
<input type=“submit” value=“go” />
</form>
{if get_q}
<h2>Search for {get_q}</h2>
{/if}
{/exp:spyglass:form}
{exp:spyglass:search fields=“title|page_body”
keyword_limit=“4” parse=“inward” index_check=“yes”}
<h3 class=“search-result”>{title}</h3>
<div class=“search-excerpt”>
{exp:spyglass:excerpt}
{page_body}
{/exp:spyglass:excerpt}
</div>
{/exp:spyglass:search}
MetaSushi EE Add-ons Newsletter
To stay up to date with the latest ExpressionEngine add-on news from MetaSushi, be sure to subscribe to the MetaSushi EE Add-ons Newsletter today (very low volume).
This entry was last updated March 11, 2012, 6:58 pm.
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!
There are no reviews for this add-on yet.
What are you waiting for? Rate it and review it!