I'm using Stash 2.3.6 beta. Can somebody explain why this works:
{exp:stash:set name="var1"}no{/exp:stash:set}
{exp:stash:set name="var1"}yes{/exp:stash:set}
{exp:stash:get name="var1"}
Where I get "yes" as output.
But this does not:
{exp:stash:set name="var1"}no{/exp:stash:set}
{exp:channel:entries channel="promos" limit="1"}
{exp:stash:set name="var1" replace="yes"}yes{/exp:stash:set}
{/exp:channel:entries}
{exp:stash:get name="var1"}
Where I get "no" as output, but expect "yes".
I'm guessing it has to do with the parse order, and that channel:entries happens after everything outside of it is parsed. I looked at the parse order docs (The Template Engine), and it looks like channel:entries are processed on step 15, module and plugin tags. Not sure where Stash gets processed.
But, speaking of which, I did try adding process="end" to the get. That got me a funky looking output: {357b280a38bad6479603b312799efcb0422985159}
Any help appreciated.
{exp:stash:set name="var1"}no{/exp:stash:set}
to{exp:stash:set replace="yes" name="var1"}no{/exp:stash:set}
exp:stash:set