Search module - Meta & Title

Do something cool with CMS? Show us ...
This board is for 'Answers', and the discussion of answers... Not for questions.
Post Reply
fritzfs
New Member
New Member
Posts: 8
Joined: Thu Feb 07, 2008 3:39 pm

Search module - Meta & Title

Post 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!
Post Reply

Return to “Tips and Tricks”