Stash
Stash copied to clipboard
Stash allows you to stash text and snippets of code for reuse throughout your templates.
This would be ideal: ``` {exp:stash:set_list name="foo"} {stash:some_value trim="yes" default="1"}{cf_foo}{/stash:some_value} {/exp:stash:set_list} ```
I am trying to build out a query for the query module and despite having a trailing/leading whitespacing when setting or appending it gets stripped. I thought trim was set...
Hi there. Do you know why the following line of code doesn't work with a .env file in EE7? $config['stash_file_basepath'] = $_ENV['STASH_FILE_BASEPATH'];
I am wanting to pass a JS value to a Stash variable but the following didn't work. Is this possble? var w = window.innerWidth; var x = document.getElementById("demo"); x.innerHTML =...
In the global (most outer) layout I would like to get some member variables and pass them on the a template that uses. _global_layout ``` {if logged_in} {exp:stash:set scope='user' parse_tags='yes'...