The including template (the parent):
{jrCore_include template=$_scroll.scroll_section_template}
{if $_scroll.scroll_section_template == "testchild.tpl"}
{debug}
testthing is {$testthing}
{/if}
The included testchild.tpl template:
{capture name="testthing_capture" assign="testthing_assigned"}ROCKON{/capture}
{assign var="testthing" value=$testthing_assigned scope="parent"}
Should $testthing be available in the parent template since it's in the debug window? (it is null in the debug window if scope is not set in the assign)
Example 7.11. {assign} in the scope of calling template
http://www.smarty.net/docs/en/language.function.assign.tpl?#idp7975424
Thanks
--
¯\_(ツ)_/¯ Education, learning resources, TEL, AR/VR/MR, CC licensed content, panoramas, interactive narrative, sectional modules (like jrDocs), lunch at Uni of Bristol. Get in touch if you share my current interests or can suggest better :)
updated by @ultrajam: 06/28/14 05:26:06PM