I have a template with the following setup:
{exp:channel:entries channel="home"}
{embed="includes/contact_form"}
{/exp:channel:entries}The embedded template contains a form and this form has the following hidden fields:
<input type="hidden" name="source_title" value="{title}" />
<input type="hidden" name="source_url" value="{page_uri}" />But the {title} and {page_uri} variables don’t get assigned. Is this a scope issue?
These variables work if I include the form as a snippet rather than an embedded template. Is there a way to do it as an embedded template?