Page 1 of 1

variable domain something to be explained [SOLVED]

Posted: Fri Dec 30, 2011 7:22 am
by fabiano
Hello again everybody,
I would like to ask you if you can explain why I have a variable assigned in the header of my template:

Code: Select all

<head>
{capture assign='tagname'}{title}{/capture}

here it works: {$tagname}
</head>
</__body>
here doesn't: {$tagname}
<__body>
but I cannot use it in the body. Is there something that I don't know or is the name of the variable or could someone explain?

I forgot to say I just updated to 1.10 and before was working perfectly.
thanks a lot

Re: variable domain something to be explained

Posted: Fri Dec 30, 2011 7:10 pm
by Wishbone
By default, the </__body> is processed through Smarty before the <head>, unless $config['process_whole_template'] = 'true'; in config.php.

Re: variable domain something to be explained [SOLVED]

Posted: Fri Dec 30, 2011 9:22 pm
by fabiano
Thank you a ton! I forgot about that!

:D