Skip to content

Instantly share code, notes, and snippets.

@croxton
Created June 6, 2011 18:41
Show Gist options
  • Save croxton/1010797 to your computer and use it in GitHub Desktop.
Save croxton/1010797 to your computer and use it in GitHub Desktop.
ExpressionEngine Stash match/against example
{!-- get a list of people with last names starting A-F --}
{exp:channel:entries channel="people" sort="asc" orderby="person_lname"}
{exp:stash:append name="people_a_f" match="#^[A-F]#" against="{person_lname}"}
<li><a href="/people/{entry_url}" title="view profile">{title}</a></li>
{/exp:stash:append}
{/exp:channel:entries}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment