Visibility of global smarty variables
Posted: Wed Jul 20, 2016 11:24 am
I'm trying to get our website using MleCMS to work with CMSMS 2.0.
Now I got it basically working, but there is on problem.
At the beginning of site template I have {MleCMS action="init"}, which sets global variables lang_parent, lang_locale, lang_dir with $smarty->assignGlobal
But {$lang_locale} returns empty string until after html head tag (when it starts to show correct values).
For debugging I added (inside html comments)
lang_locale="{$lang_locale}"
{get_template_vars}
into main template after module init... $lang_locale is empty, but get_template_vars shows it having value.
I'm using CMSMS 2.1.4
Now I got it basically working, but there is on problem.
At the beginning of site template I have {MleCMS action="init"}, which sets global variables lang_parent, lang_locale, lang_dir with $smarty->assignGlobal
But {$lang_locale} returns empty string until after html head tag (when it starts to show correct values).
For debugging I added (inside html comments)
lang_locale="{$lang_locale}"
{get_template_vars}
into main template after module init... $lang_locale is empty, but get_template_vars shows it having value.
I'm using CMSMS 2.1.4