variable domain something to be explained [SOLVED]

The place to talk about things that are related to CMS Made simple, but don't fit anywhere else.
Post Reply
fabiano
Forum Members
Forum Members
Posts: 16
Joined: Tue May 29, 2007 12:03 pm

variable domain something to be explained [SOLVED]

Post 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
Last edited by fabiano on Fri Dec 30, 2011 9:21 pm, edited 1 time in total.
Wishbone
Power Poster
Power Poster
Posts: 1368
Joined: Tue Dec 23, 2008 8:39 pm

Re: variable domain something to be explained

Post by Wishbone »

By default, the </__body> is processed through Smarty before the <head>, unless $config['process_whole_template'] = 'true'; in config.php.
fabiano
Forum Members
Forum Members
Posts: 16
Joined: Tue May 29, 2007 12:03 pm

Re: variable domain something to be explained [SOLVED]

Post by fabiano »

Thank you a ton! I forgot about that!

:D
Post Reply

Return to “The Lounge”