Difference between revisions of "Liquid Template Variables - search"

From Spiffy Stores Knowledge Base

Line 6: Line 6:
  
 
== <code>search.results</code> ==
 
== <code>search.results</code> ==
 +
 +
Returns an array of search results. The search items may be a
 +
 +
* [[Liquid Template Variables - product|product]]
 +
* [[Liquid Template Variables - collection|collection]]
 +
* [[Liquid Template Variables - article|article]]
 +
* [[Liquid Template Variables - blog|blog]]
 +
* [[Liquid Template Variables - page|page]]
 +
 +
In addition to the standard attributes returned by the respective variables, an additional attribute ''object_type'' is supported to distiguish each of the search results.
  
 
== <code>search.results_count</code> ==
 
== <code>search.results_count</code> ==
  
 
== <code>search.terms</code> ==
 
== <code>search.terms</code> ==

Revision as of 15:41, 11 March 2016

The Liquid template variable search has the following attributes:

search.performed

Returns true if a successful search was performed.

search.results

Returns an array of search results. The search items may be a

In addition to the standard attributes returned by the respective variables, an additional attribute object_type is supported to distiguish each of the search results.

search.results_count

search.terms