Closed sheferd closed 10 years ago
The EE embed is being parsed before the Stash embed. Either use all Stash embeds, or include (but don't parse) the Stash embed early, instead of at the end of parsing (as per default).
{stash:embed:presets:default process="start" parse="no"}
I'm trying to pass a variable into an embed but it isn't out putting correctly. From docs:
Here is my code: This is inside templates/stash/presets/default.html:
{exp:stash:set name="page_preset"}default{/exp:stash:set}
This is inside templates/_pages/.default:{stash:embed name="regions:{stash:page_preset}_page_start"}
And where it starts:
{exp:switchee variable="{segment_2}" parse="inward"}
...
...
{case default="yes"}
{embed="_pages/.default"}
{stash:embed:presets:default}
{/case}
{/exp:switchee}
which outputs:
it seems the "{'s" are being ignored.
Any ideas?