Code: Select all
global $gCms;
$smarty = &$gCms->GetSmarty();
$smarty_data = "{title}";
$smarty->_compile_source('temporary template', $smarty_data, $_compiled );
@ob_start();
$smarty->_eval('?>' . $_compiled);
$_contents = @ob_get_contents();
@ob_end_clean();
Unfortunately I am not an experienced coder at all, and I cannot seem to find information anywhere on how to get the page title into a variable post 1.11.
Can someone help?