Skip to content

Instantly share code, notes, and snippets.

@sjelfull
Forked from croxton/gist:1010797
Created June 28, 2011 08:40
Show Gist options
  • Select an option

  • Save sjelfull/1050745 to your computer and use it in GitHub Desktop.

Select an option

Save sjelfull/1050745 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