Skip to content

{exp:stash:append}

Mark Croxton edited this page Jun 21, 2013 · 1 revision

Works the same as {exp:stash:set}, except the value is appended to an existing variable. If the variable doesn't exist, it will be created.

{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}

The above would capture all 'people' entries whose last name {person_lname} starts with A-F.

##Parameters

Accepts the same parameters as {exp:stash:set}

Clone this wiki locally