Skip to content

Instantly share code, notes, and snippets.

@croxton
Forked from robzor/gist:1704391
Created January 30, 2012 15:03
Show Gist options
  • Save croxton/1704863 to your computer and use it in GitHub Desktop.
Save croxton/1704863 to your computer and use it in GitHub Desktop.
stash fun
{exp:stash:get name="keywords" type="snippet" dynamic="yes" match="#^[a-zA-Z0-9_\s-]+$#" output="no"}
{exp:stash:set parse_tags="yes"}
{exp:search_fields
search:title="{keywords}"
channel="catentry"}
{stash:search_results}{search_results}{/stash:search_results}
{stash:search_count}{search_count}{/stash:search_count}
{/exp:search_fields}
{/exp:stash:set}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment