-
Notifications
You must be signed in to change notification settings - Fork 20
{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}
Getting started
Using Stash
Using Mustash
- Mustash
- Installing Mustash
- Managing variables
- Managing bundles
- Cache-breaking rules
- Mustash plugins
- Mustash Varnish plugin
- Mustash plugin development
- Mustash API
Template design patterns
Tag reference
- {exp:stash:set}
- {exp:stash:get}
- {exp:stash:block}
- {exp:stash:set_value}
- {exp:stash:append}
- {exp:stash:append_value}
- {exp:stash:prepend}
- {exp:stash:prepend_value}
- {exp:stash:copy}
- {exp:stash:context}
- {exp:stash:is_empty}
- {exp:stash:not_empty}
- {exp:stash:set_list}
- {exp:stash:get_list}
- {exp:stash:append_list}
- {exp:stash:prepend_list}
- {exp:stash:split_list}
- {exp:stash:join_lists}
- {exp:stash:list_count}
- {exp:stash:unset}
- {exp:stash:flush_cache}
- {exp:stash:bundle}
- {stash:embed}
- {exp:stash:extend}
- {exp:stash:parse}
- {exp:stash:cache}
- {exp:stash:static}
- {exp:stash:finish}
- {exp:stash:not_found}
- Short tag syntax
- Using Stash methods in your own add-ons