how to print link tag in user defined tag?
Posted: Fri Apr 18, 2008 12:59 pm
Hi everyone,
Im trying to simply print a proper link tag inside my user defined tag but its not working, anyone have any ideas why?
This is what i have tried based on the website examples:
Thanks,
Im trying to simply print a proper link tag inside my user defined tag but its not working, anyone have any ideas why?
This is what i have tried based on the website examples:
Code: Select all
$smarty = &$gCms->GetSmarty();
$smarty_data = "{cms_selflink page='Job Details' text='test'}";
$smarty->_compile_source('temporary template', $smarty_data, $_compiled );
@ob_start();
$smarty->_eval('?>' . $_compiled);
$_contents = @ob_get_contents();
@ob_end_clean();
echo $_contents;