Tag 2.1 Search Results
This function can be placed on a regular EE search results page. It reads the id string from the URL and fetches the keywords. Then it searches for entries that have tags matching the keywords. An example usage of the Tag Search Results code would be to display Tag search results alongside, above, or below the regular EE Search Results on the native EE Search Results page. All searches still must be performed through the native EE search form.
Note: This is not to be confused with a complete Tag Search Engine feature. This is only supplemental to the native EE Search Results.
{exp:tag:search_results} content {/exp:tag:search_results}
Parameters
limit=
limit="15"
The 'limit' parameter allows you to limit the search results.
tag_rank=
tag_rank="clicks"
The 'tag_rank' parameter allows you to display the results returned by the popularity of the tags found in them using this param. You can currently rank by 'clicks', 'gallery_entries', 'total_entries', and 'weblog_entries'.
where=
where="any"
The 'where' parameter allows you to specify how to match the search, like native EE search. You can currently match by by 'any', 'all', and 'exact'.
Variables
All of the variables available in the weblog:entries tag are available here.
Variable Pairs
All of the variables available in the weblog:entries tag are available here.
Conditionals
All of the variables available in the weblog:entries tag are available here.
Examples
The below code would be displayed on the native EE Search Results page alongside, above, or below the regular EE Search Results.
This example in particular will match ‘any’ search term entered, and order results by ‘clicks’.
{exp:tag:search_results tag_rank="clicks" where="any"}
<div><a href="{permalink=template_group/template}">{title}</a></div>
{/exp:tag:search_results}