Skip to content

{exp:stash:extend}

Mark Croxton edited this page Nov 22, 2013 · 18 revisions

Inject a Stash embed into a variable or block.

Can be used as a single tag, passing parameters to the embed in the form stash:param="value":

{exp:stash:extend name="content" with="views:my_embed" stash:my_var="value"}

Or as a tag pair, appending a 4th tagpart to the tag, variables can be passed to the injected embed via {stash:var}...{/stash:var} tag pairs:

{exp:stash:extend:block name="content" with="views:my_embed"}
    {stash:my_var}value{/stash:my_var}
{/exp:stash:extend:block}

Parameters

with = [ string ]

The name of the native Stash variable or block that you want to extend

stash:my_variable="value"

Pass variables to the injected Stash embed as parameters in the form stash:my_variable="value"

Clone this wiki locally