Template Search

A template search is similar to the Template Loop. You can search against any page or product that is tied to a particular page template. This search looks at the appropriate fields including attributes and can return attributes in the result set as well unlike the other searches. As you can see in the example below, simply pass the slug name of the page template you would like to search.

Example:

{% form search(tpl_blog) %}
<input type="submit" value="Search">
{% endform %}

The result loop will return the following:

Output Tag Description
Product Output Tags (if product template) See Product Loop Documentation
Page Output Tags (if page, category or subcategory template) See Page Loop Documentation
attribute slug All attribute slugs that have been flagged to show externally that relate to that template.

Start your free, no-risk trial today.