I think I'm overlooking something.
I would like to set a variable in a template, and have it available to use in the PAGE_CONTAINER. This is usually done like this:
Then in the PAGE_CONTAINER template, the {$head} variable is available.
I'd like to do something similar, e.g.
But when I do, in PAGE_CONTAINER:
The value returned is NULL.
So clearly I'm missing something, but I can't think what.
I would like to set a variable in a template, and have it available to use in the PAGE_CONTAINER. This is usually done like this:
Code:
<xen:container var="$head.canonical"><link rel="canonical" href="{xen:link 'canonical:index'}" /></xen:container>
Then in the PAGE_CONTAINER template, the {$head} variable is available.
I'd like to do something similar, e.g.
Code:
<xen:container var="$foo.bar">1</xen:container>
But when I do, in PAGE_CONTAINER:
Code:
{xen:helper dump, $foo}
The value returned is NULL.
So clearly I'm missing something, but I can't think what.