I have the blank editing page/cannot save template problem. It seems it is due to the following UDT:
Code: Select all
$gCms = cmsms ();
// Sets the smarty variable $wsite_lang
// The root of the hierarchy path of the current page defines the language.
$lang = explode ("/", $gCms->variables['content_obj']->HierarchyPath(), 2);
$gCms->GetSmarty ()->assign('wsite_lang', $lang[0]);
Code: Select all
$lang = explode("/", cms_utils::get_current_content()->HierarchyPath(), 2);
Thanks for your answers.