croxton / Stash

Stash allows you to stash text and snippets of code for reuse throughout your templates.
GNU General Public License v3.0
198 stars 20 forks source link

EE3: {stash:embed} tag not parsed in embedded template #156

Closed outofcontrol closed 7 years ago

outofcontrol commented 7 years ago

In EE2 it was possible to add {stash:embed} tags to templates that were called by other templates, and they would be parsed without trouble. In EE3 this results in the {stash:embed} tag simply being passed along unparsed. I have process="start" param set.

croxton commented 7 years ago

Yes the short syntax will no longer work in EE's own child templates in latest EE 3 (still works in Stash templates), but you can get this working by prepending with {exp:: {exp:stash:embed:my_embed}

outofcontrol commented 7 years ago

Strangely enough, this appears to work now in the latest EE with just {stash:embed}. Tested by creating 3 templates: test, test2 and test3. Put the {stash:embed} in test, then included test in test2 and test2 in test3 using just normal EE embeds. Page loaded fine. No, process="start" was used.

croxton commented 7 years ago

Interesting, thanks!