Page 1 of 1

Search module - Meta & Title

Posted: Tue Feb 26, 2008 9:23 pm
by fritzfs
Hello guys,
any idea on how to set {title} and {metadata} when (inside) Search module is active?

I've tried creating UDT and connecting it thru Events->SearchCompleted, doesn't work.

Code: Select all

global $gCms;
$smarty = &$gCms->GetSmarty();
$smarty->assign('metadata', '<meta name="description" content="my new description" />');
Thanks!